|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.ssec.mcidas.GRIDnav
public class GRIDnav
GRIDnav is the class for handling the navigation of McIDAS grids. It is basically a Java version of GRDDEF.FOR.
| Field Summary | |
|---|---|
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 |
| 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 |
|---|
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)
rowcol - array of row/col pairs. Where
rowcol[indexRow][] is a row and
rowcol[indexCol][] is a column.
public double[][] toRowCol(double[][] latlon)
latlon - array of lat/long pairs. Where latlon[indexLat][]
are latitudes and latlon[indexLon][] are longitudes.
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.
equals in class Objectobj - 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 | |||||||||