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
FieldsFields inherited from class noaa.coastwatch.util.trans.EarthTransform
boundaryHandler, dims -
Constructor Summary
ConstructorsConstructorDescriptionCDMGridMappedProjection(ucar.nc2.dt.GridCoordSystem coordSystem) Constructs a new projection. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Gets a string describing the earth transform type.booleangetDatum()Gets the transform datum.getName()Gets the projection name.doubleGets the map pixel size.Gets the projection system units.static booleanisCompatibleSystem(ucar.nc2.dt.GridCoordSystem system) Checks if a coordinate system is compatible with this class.static voidTests this class.toString()protected voidtransformImpl(DataLocation dataLoc, EarthLocation earthLoc) Implements the data to geographic transform.protected voidtransformImpl(EarthLocation earthLoc, DataLocation dataLoc) Implements the geographic to data transform.Methods inherited from class noaa.coastwatch.util.trans.EarthTransform2D
get2DVersion, getBoundingBox, getWorldAxes, isOrientable, setPointTransform, transformToPointMethods inherited from class noaa.coastwatch.util.trans.EarthTransform
clone, closest, distance, getBoundaryHandler, getDimensions, getResolution, getSpheroid, getSpheroid, getSubset, isInvertible, transform, transform, transform, transformMethods 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:EarthTransformGets a string describing the earth transform type.- Specified by:
describein 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:EarthTransformGets the transform datum. Unless overridden by the child class, this method returns WGS84.- Overrides:
getDatumin classEarthTransform- Returns:
- the geodetic datum.
-
transformImpl
Description copied from class:EarthTransformImplements the geographic to data transform.- Specified by:
transformImplin classEarthTransform- See Also:
-
transformImpl
Description copied from class:EarthTransformImplements the data to geographic transform.- Specified by:
transformImplin classEarthTransform- See Also:
-
equals
-
main
Tests this class.- Parameters:
argv- the array of command line parameters.- Throws:
Exception
-