|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.CoordinateSystem visad.georef.NavigatedCoordinateSystem visad.georef.MapProjection visad.georef.LongitudeLatitudeInterpCS
public class LongitudeLatitudeInterpCS
For 2D arrays of earth observations when the navigation is not provided analytically, but a set of navigated points is given to interpolate. Particularly useful for polar swath observations with point-by-point navigation.
Constructor Summary | |
---|---|
LongitudeLatitudeInterpCS(Linear2DSet domainSet,
Gridded2DSet lonlatSet)
|
|
LongitudeLatitudeInterpCS(Linear2DSet domainSet,
Gridded2DSet lonlatSet,
boolean neg180pos180)
|
Method Summary | |
---|---|
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. -180 to 180 back/forth to 0 to 360. |
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. |
Methods inherited from class visad.georef.MapProjection |
---|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder, toString |
Methods inherited from class visad.georef.NavigatedCoordinateSystem |
---|
getLatitudeIndex, getLongitudeIndex |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |