public class GRIDCoordinateSystem extends MapProjection
| Constructor and Description |
|---|
GRIDCoordinateSystem(GridDirectory gridDirectory)
create a GRID coordinate system from a GridDirectory
|
GRIDCoordinateSystem(int[] dirBlock)
create a GRID coordinate system from the GRID's
directory block;
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines whether or not the
Object in question is
the same as this AREACoordinateSystem. |
double[][] |
fromReference(double[][] latlon)
Converts lat/lon to grid xy (col,row)
|
Rectangle2D |
getDefaultMapArea()
Get the bounds for this grid
|
int[] |
getDirBlock()
Get the directory block used to initialize this GRIDCoordinateSystem
|
double[][] |
toReference(double[][] rowcol)
Converts grid xy (col,row) to latitude/longitude
|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder, toStringgetLatitudeIndex, getLongitudeIndexcanConvert, fromReference, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnitspublic GRIDCoordinateSystem(GridDirectory gridDirectory) throws VisADException
gridDirectory - directory to useVisADExceptionpublic GRIDCoordinateSystem(int[] dirBlock)
throws VisADException
dirBlock - the grid's directory blockVisADExceptionpublic double[][] toReference(double[][] rowcol)
throws VisADException
toReference in class CoordinateSystemrowcol - array containing the col/row pairsVisADException - if input is invalid or there is no nav modulepublic double[][] fromReference(double[][] latlon)
throws VisADException
fromReference in class CoordinateSystemlatlon - array containing the corresponding lat/lon pairsVisADException - if input is invalid or there is no nav modulepublic Rectangle2D getDefaultMapArea()
getDefaultMapArea in class MapProjectionpublic int[] getDirBlock()
public boolean equals(Object obj)
Object in question is
the same as this AREACoordinateSystem. The specified
Object is equal to this GRIDCoordinateSystem
if it is an instance of GRIDCoordinateSystem and it has
the same navigation module and default map area as this one.equals in class CoordinateSystemobj - the Object in questiontrue if and only if this instance equals cs.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.