|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.CoordinateSystem
visad.georef.NavigatedCoordinateSystem
visad.georef.MapProjection
visad.data.mcidas.GRIDCoordinateSystem
public class GRIDCoordinateSystem
GRIDCoordinateSystem is the VisAD CoordinateSystem class for conversions to/from (Latitude, Longitude) and Cartesian (col,row), and with Latitude and Longitude in degrees.
| Constructor Summary | |
|---|---|
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; |
|
| Method Summary | |
|---|---|
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 |
| 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 java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GRIDCoordinateSystem(GridDirectory gridDirectory)
throws VisADException
gridDirectory - directory to use
VisADException
public GRIDCoordinateSystem(int[] dirBlock)
throws VisADException
dirBlock - the grid's directory block
VisADException| Method Detail |
|---|
public double[][] toReference(double[][] rowcol)
throws VisADException
toReference in class CoordinateSystemrowcol - array containing the col/row pairs
VisADException - if input is invalid or there is no nav module
public double[][] fromReference(double[][] latlon)
throws VisADException
fromReference in class CoordinateSystemlatlon - array containing the corresponding lat/lon pairs
VisADException - 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 question
true if and only if this instance equals cs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||