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, toStringgetLatitudeIndex, getLongitudeIndexcanConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnitspublic 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
VisADExceptionpublic float[][] toReference(float[][] values)
throws VisADException
CoordinateSystemCoordinateSystem.toReference(double[][]) and then returns that converted
double array back as a float array. For efficiency, subclasses
should override this implementation.toReference in class CoordinateSystemvalues - 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
CoordinateSystemtoReference in class CoordinateSystemvalues - 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
CoordinateSystemCoordinateSystem.toReference(double[][]) and then returns that converted
double array back as a float array. For efficiency, subclasses
should override this implementation.fromReference in class CoordinateSystemlonlat - 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
CoordinateSystemfromReference in class CoordinateSystemlonlat - 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()
MapProjectiongetDefaultMapArea in class MapProjectionpublic Linear2DSet getDomainSet()
public Gridded2DSet getLonLatSet()
public boolean getIsNeg180pos180()
public void setIsExtNeg180pos180(boolean yesno)
public boolean getIsExtNeg180pos180()
public boolean equals(Object cs)
CoordinateSystemequals in class CoordinateSystemcs - the object in question.true if and only if this instance equals cs.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.