Package noaa.coastwatch.util.trans
Class GeoVectorProjection
java.lang.Object
noaa.coastwatch.util.MetadataContainer
noaa.coastwatch.util.trans.EarthTransform
noaa.coastwatch.util.trans.EarthTransform2D
noaa.coastwatch.util.trans.GeoVectorProjection
- All Implemented Interfaces:
Cloneable
The
GeoVectorProjection
class uses arrays of latitude
and longitude data to transform coordinates. It is assumed that
the projection may be described by two 1D arrays: one for latitude
and one for longitude. Each row in data coordinates has all the
same latitude, and each column has all the same longitude or
vice-versa. Since the projection is based on discrete data values,
it is similar to swath in that the transformation of data
coordinates outside the data dimensions returns invalid Earth
locations.- Since:
- 3.2.0
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.util.trans.EarthTransform
boundaryHandler, dims
-
Constructor Summary
ConstructorDescriptionGeoVectorProjection
(double[] latArray, double[] lonArray, int latLocIndex, int lonLocIndex) Constructs a new projection. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()
Gets a string describing the earth transform type.boolean
protected void
transformImpl
(DataLocation dataLoc, EarthLocation earthLoc) Implements the data to geographic transform.protected void
transformImpl
(EarthLocation earthLoc, DataLocation dataLoc) Implements the geographic to data transform.Methods inherited from class noaa.coastwatch.util.trans.EarthTransform2D
get2DVersion, getBoundingBox, getWorldAxes, isOrientable, main, setPointTransform, transformToPoint
Methods inherited from class noaa.coastwatch.util.trans.EarthTransform
clone, closest, distance, getBoundaryHandler, getDatum, getDimensions, getResolution, getSpheroid, getSpheroid, getSubset, isInvertible, transform, transform, transform, transform
Methods inherited from class noaa.coastwatch.util.MetadataContainer
getMetadataMap
-
Field Details
-
DESCRIPTION
Projection description string.- See Also:
-
-
Constructor Details
-
GeoVectorProjection
public GeoVectorProjection(double[] latArray, double[] lonArray, int latLocIndex, int lonLocIndex) Constructs a new projection.- Parameters:
latArray
- the array of latitude locations in degrees (should be monotonic).lonArray
- the array of longitude locations in degrees (should be monotonic).latLocIndex
- the data location index associated with latitude.lonLocIndex
- the data location index associated with longitude.
-
-
Method Details
-
describe
Description copied from class:EarthTransform
Gets a string describing the earth transform type.- Specified by:
describe
in classEarthTransform
-
transformImpl
Description copied from class:EarthTransform
Implements the geographic to data transform.- Specified by:
transformImpl
in classEarthTransform
- See Also:
-
transformImpl
Description copied from class:EarthTransform
Implements the data to geographic transform.- Specified by:
transformImpl
in classEarthTransform
- See Also:
-
equals
-