|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.ssec.mcidas.GRIDnav
GRIDnav is the class for handling the navigation of McIDAS grids. It is basically a Java version of GRDDEF.FOR.
| Field Summary | |
(package private) double |
EARTH_RADIUS
|
(package private) int |
EQUIDISTANT
Navigation type for equidistant grids |
int |
indexCol
"Column" index in row/column array |
int |
indexLat
"Latitude" index in latitude/longitude array |
int |
indexLon
"Longitude" index in latitude/longitude array |
int |
indexRow
"Row" index in row/column array |
(package private) int |
LAMBERT_CONFORMAL_TANGENT
Navigation type for lambert conformal tangent grids |
(package private) int |
NO_NAV
|
(package private) int |
PS_OR_LAMBERT_CONIC
Navigation type for polar stero or lambert conformal conic grids |
(package private) int |
PSEUDO_MERCATOR
Navigation type for pseudo-mercator grids |
(package private) int |
PSEUDO_MERCATOR_GENERAL
Navigation type for pseudo-mercator (general case) grids |
(package private) static long |
serialVersionUID
|
(package private) double |
xrad
|
| Constructor Summary | |
GRIDnav(int[] gridDirBlock)
Construct a new GRIDnav from a grid directory block |
|
| Method Summary | |
boolean |
equals(Object obj)
Determines whether or not the Object in question is
the same as this AREAnav. |
int |
getColumnIndex()
Get the column index |
int |
getRowIndex()
Get the row index |
double |
getRowOffset()
Get the row offset for flipped coordinates |
boolean |
isFlippedRowCoordinates()
Determine if navigation is using flipped coordinates. |
void |
setFlipRowCoordinates(int row)
specify whether the row coordinates are inverted and the row offset. |
void |
setStart(int startRow,
int startColumn)
define the starting row and column of another coordinate system -- for example (0,0) |
double[][] |
toLatLon(double[][] rowcol)
converts from grid coordinates (x,y) or (col, row) to latitude/longitude |
double[][] |
toRowCol(double[][] latlon)
toRowCol converts latitude/longitude to grid row/col |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final long serialVersionUID
final int PSEUDO_MERCATOR
final int PS_OR_LAMBERT_CONIC
final int EQUIDISTANT
final int PSEUDO_MERCATOR_GENERAL
final int NO_NAV
final int LAMBERT_CONFORMAL_TANGENT
final double EARTH_RADIUS
final double xrad
public final int indexRow
public final int indexCol
public final int indexLat
public final int indexLon
| Constructor Detail |
public GRIDnav(int[] gridDirBlock)
throws McIDASException
gridDirBlock - grid header block
McIDASException - illegal grid header| Method Detail |
public double[][] toLatLon(double[][] rowcol)
public double[][] toRowCol(double[][] latlon)
public boolean equals(Object obj)
Object in question is
the same as this AREAnav. Right now, this returns
false until we can figure out when two navigations are equal.
Subclasses could override if desired.
obj - the AREAnav in question
public void setStart(int startRow,
int startColumn)
startRow - the starting row number in another
coordinate systemstartColumn - the starting column number in another
coordinate systempublic void setFlipRowCoordinates(int row)
row - ending row numberpublic boolean isFlippedRowCoordinates()
public double getRowOffset()
public int getRowIndex()
public int getColumnIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||