Package noaa.coastwatch.util.trans
Class CDMGridMappedProjection
java.lang.Object
noaa.coastwatch.util.MetadataContainer
noaa.coastwatch.util.trans.EarthTransform
noaa.coastwatch.util.trans.EarthTransform2D
noaa.coastwatch.util.trans.CDMGridMappedProjection
- All Implemented Interfaces:
Cloneable
The
CDMGridMappedProjection
class wraps a Java NetCDF
CDM projection and allows access to transform calculations through the
standard EarthTransform
interface.- Since:
- 3.3.1
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.util.trans.EarthTransform
boundaryHandler, dims
-
Constructor Summary
ConstructorDescriptionCDMGridMappedProjection
(ucar.nc2.dt.GridCoordSystem coordSystem) Constructs a new projection. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()
Gets a string describing the earth transform type.boolean
getDatum()
Gets the transform datum.getName()
Gets the projection name.double
Gets the map pixel size.Gets the projection system units.static boolean
isCompatibleSystem
(ucar.nc2.dt.GridCoordSystem system) Checks if a coordinate system is compatible with this class.static void
Tests this class.toString()
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, setPointTransform, transformToPoint
Methods inherited from class noaa.coastwatch.util.trans.EarthTransform
clone, closest, distance, getBoundaryHandler, 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
-
CDMGridMappedProjection
public CDMGridMappedProjection(ucar.nc2.dt.GridCoordSystem coordSystem) Constructs a new projection.- Parameters:
coordSystem
- the grid coordinate system to use to create the projection.- Throws:
IllegalArgumentException
- if the coordinate system cannot be used by this class.
-
-
Method Details
-
getName
Gets the projection name.- Returns:
- the projection name.
- Since:
- 3.6.1
-
getPixelSize
public double getPixelSize()Gets the map pixel size.- Returns:
- the pixel size in projection units.
- Since:
- 3.6.1
- See Also:
-
getProjectionUnits
Gets the projection system units.- Returns:
- the projection units that match the pixel size (km, radians, or degrees) or null if they could not be determined.
- Since:
- 3.6.1
- See Also:
-
describe
Description copied from class:EarthTransform
Gets a string describing the earth transform type.- Specified by:
describe
in classEarthTransform
-
toString
-
isCompatibleSystem
public static boolean isCompatibleSystem(ucar.nc2.dt.GridCoordSystem system) Checks if a coordinate system is compatible with this class.- Parameters:
system
- the grid coordinate system to test.- Returns:
- true if the coordinate system can be used with this class or false if not.
-
getDatum
Description copied from class:EarthTransform
Gets the transform datum. Unless overridden by the child class, this method returns WGS84.- Overrides:
getDatum
in classEarthTransform
- Returns:
- the geodetic datum.
-
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
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-