public class LongitudeLatitudeInterpCS extends MapProjection
Constructor and Description |
---|
LongitudeLatitudeInterpCS(Linear2DSet domainSet,
Gridded2DSet lonlatSet) |
LongitudeLatitudeInterpCS(Linear2DSet domainSet,
Gridded2DSet lonlatSet,
boolean neg180pos180) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object cs)
Indicates whether or not this instance is equal to an object
(note must test for cs == null).
|
double[][] |
fromReference(double[][] lonlat)
Convert RealTuple values from Reference coordinates;
for efficiency, input and output values are passed as
double[][] arrays rather than RealTuple[] arrays; the array
organization is double[tuple_dimension][number_of_tuples];
can modify and return argument array.
|
float[][] |
fromReference(float[][] lonlat)
Convert RealTuple values from Reference coordinates;
for efficiency, input and output values are passed as
float[][] arrays rather than RealTuple[] arrays; the array
organization is float[tuple_dimension][number_of_tuples];
can modify and return argument array.
|
Rectangle2D |
getDefaultMapArea()
Get a reasonable bounding box in this coordinate system.
|
Linear2DSet |
getDomainSet() |
boolean |
getIsExtNeg180pos180() |
boolean |
getIsNeg180pos180() |
Gridded2DSet |
getLonLatSet() |
void |
setExternalLongitudeRange(boolean isExtNeg180pos180) |
void |
setIsExtNeg180pos180(boolean yesno)
Will convert to external (incoming/outgoing) longitude
range, ie.
|
double[][] |
toReference(double[][] values)
Convert RealTuple values to Reference coordinates;
for efficiency, input and output values are passed as
double[][] arrays rather than RealTuple[] arrays; the array
organization is double[tuple_dimension][number_of_tuples];
can modify and return argument array.
|
float[][] |
toReference(float[][] values)
Convert RealTuple values to Reference coordinates;
for efficiency, input and output values are passed as
float[][] arrays rather than RealTuple[] arrays; the array
organization is float[tuple_dimension][number_of_tuples];
can modify and return argument array.
|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder, toString
getLatitudeIndex, getLongitudeIndex
canConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
public LongitudeLatitudeInterpCS(Linear2DSet domainSet, Gridded2DSet lonlatSet, boolean neg180pos180) throws VisADException
domainSet
- The CoordinateSystem, eg. (line, element), (Track, XTrack)lonlatSet
- The set of earth locations to interpolate for (x,y) to/from (lon,lat).
May be sampled w/respect to domainSet, eg. every fifth point.
SetType must be SpatialEarth2DTuple or LatitudeLongitudeTuple.neg180pos180
- The range of longitude values in the lonlatSet. Default is true,
false is (0,+360).VisADException
- Couldn't create necessary VisAD object or reference type
(the lonlatSet type) is not SpatialEarth2DTuple or LatitudeLongitudeTuplepublic LongitudeLatitudeInterpCS(Linear2DSet domainSet, Gridded2DSet lonlatSet) throws VisADException
VisADException
public float[][] toReference(float[][] values) throws VisADException
CoordinateSystem
CoordinateSystem.toReference(double[][])
and then returns that converted
double array back as a float array. For efficiency, subclasses
should override this implementation.toReference
in class CoordinateSystem
values
- array of values assumed to be in coordinateSystem
units. Input array is not guaranteed to be immutable
and could be used for return.VisADException
- if problem with conversion.public double[][] toReference(double[][] values) throws VisADException
CoordinateSystem
toReference
in class CoordinateSystem
values
- array of values assumed to be in coordinateSystem
units. Input array is not guaranteed to be immutable
and could be used for return.VisADException
- if problem with conversion.public float[][] fromReference(float[][] lonlat) throws VisADException
CoordinateSystem
CoordinateSystem.toReference(double[][])
and then returns that converted
double array back as a float array. For efficiency, subclasses
should override this implementation.fromReference
in class CoordinateSystem
lonlat
- array of values assumed to be in reference
Units. Input array is not guaranteed to be immutable
and could be used for return.VisADException
- if problem with conversion.public double[][] fromReference(double[][] lonlat) throws VisADException
CoordinateSystem
fromReference
in class CoordinateSystem
lonlat
- array of values assumed to be in reference
Units. Input array is not guaranteed to be immutable
and could be used for return.VisADException
- if problem with conversion.public void setExternalLongitudeRange(boolean isExtNeg180pos180)
public Rectangle2D getDefaultMapArea()
MapProjection
getDefaultMapArea
in class MapProjection
public Linear2DSet getDomainSet()
public Gridded2DSet getLonLatSet()
public boolean getIsNeg180pos180()
public void setIsExtNeg180pos180(boolean yesno)
public boolean getIsExtNeg180pos180()
public boolean equals(Object cs)
CoordinateSystem
equals
in class CoordinateSystem
cs
- the object in question.true
if and only if this instance equals cs.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.