visad.data.mcidas
Class GRIDCoordinateSystem
- java.lang.Object
-
- visad.CoordinateSystem
-
- visad.georef.NavigatedCoordinateSystem
-
- visad.georef.MapProjection
-
- visad.data.mcidas.GRIDCoordinateSystem
-
- All Implemented Interfaces:
- java.io.Serializable
public class GRIDCoordinateSystem extends MapProjection
GRIDCoordinateSystem is the VisAD CoordinateSystem class for conversions to/from (Latitude, Longitude) and Cartesian (col,row), and with Latitude and Longitude in degrees.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description GRIDCoordinateSystem(GridDirectory gridDirectory)create a GRID coordinate system from a GridDirectoryGRIDCoordinateSystem(int[] dirBlock)create a GRID coordinate system from the GRID's directory block;
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)Determines whether or not theObjectin question is the same as thisAREACoordinateSystem.double[][]fromReference(double[][] latlon)Converts lat/lon to grid xy (col,row)java.awt.geom.Rectangle2DgetDefaultMapArea()Get the bounds for this gridint[]getDirBlock()Get the directory block used to initialize this GRIDCoordinateSystemdouble[][]toReference(double[][] rowcol)Converts grid xy (col,row) to latitude/longitude-
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 visad.CoordinateSystem
canConvert, fromReference, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
-
-
-
-
Constructor Detail
-
GRIDCoordinateSystem
public GRIDCoordinateSystem(GridDirectory gridDirectory) throws VisADException
create a GRID coordinate system from a GridDirectory- Parameters:
gridDirectory- directory to use- Throws:
VisADException
-
GRIDCoordinateSystem
public GRIDCoordinateSystem(int[] dirBlock) throws VisADExceptioncreate a GRID coordinate system from the GRID's directory block;- Parameters:
dirBlock- the grid's directory block- Throws:
VisADException
-
-
Method Detail
-
toReference
public double[][] toReference(double[][] rowcol) throws VisADExceptionConverts grid xy (col,row) to latitude/longitude- Specified by:
toReferencein classCoordinateSystem- Parameters:
rowcol- array containing the col/row pairs- Returns:
- array containing the corresponding lat/lon pairs
- Throws:
VisADException- if input is invalid or there is no nav module
-
fromReference
public double[][] fromReference(double[][] latlon) throws VisADExceptionConverts lat/lon to grid xy (col,row)- Specified by:
fromReferencein classCoordinateSystem- Parameters:
latlon- array containing the corresponding lat/lon pairs- Returns:
- array containing the col/row pairs
- Throws:
VisADException- if input is invalid or there is no nav module
-
getDefaultMapArea
public java.awt.geom.Rectangle2D getDefaultMapArea()
Get the bounds for this grid- Specified by:
getDefaultMapAreain classMapProjection- Returns:
- the bounding box of the MapProjection
-
getDirBlock
public int[] getDirBlock()
Get the directory block used to initialize this GRIDCoordinateSystem
-
equals
public boolean equals(java.lang.Object obj)
Determines whether or not theObjectin question is the same as thisAREACoordinateSystem. The specifiedObjectis equal to thisGRIDCoordinateSystemif it is an instance ofGRIDCoordinateSystemand it has the same navigation module and default map area as this one.- Specified by:
equalsin classCoordinateSystem- Parameters:
obj- the Object in question- Returns:
trueif and only if this instance equals cs.
-
-
DMelt 3.0 © DataMelt by jWork.ORG