edu.wisc.ssec.mcidas
Class GMSXnav
java.lang.Object
edu.wisc.ssec.mcidas.AREAnav
edu.wisc.ssec.mcidas.GMSXnav
- All Implemented Interfaces:
- java.io.Serializable
public class GMSXnav
- extends AREAnav
This class implements GMSX navigation. The code was modified
from the original FORTRAN code (nvxgmsx.dlm) on the McIDAS system. It
only supports latitude/longitude to line/element transformations (LL)
and vice/versa. Transform to 'XYZ' not implemented.
- See Also:
AREAnav
,
McIDAS Programmer's Manual,
Serialized Form
Fields inherited from class edu.wisc.ssec.mcidas.AREAnav |
DEGREES_TO_RADIANS, DMSP, GMSX, GOES, GVAR, indexEle, indexLat, indexLine, indexLon, LALO, LAMB, LL, MERC, MOLL, MSAT, POES, PS, RADIANS_TO_DEGREES, RADR, RECT, TANC, XY |
Constructor Summary |
GMSXnav(int[] navBlock)
constructor: copy nav block to a byte array, eliminating text fields |
Method Summary |
static byte[] |
intToBytes(int v)
intToBytes converts an int to an array of 4 bytes. |
static void |
main(java.lang.String[] args)
|
double[][] |
toLatLon(double[][] linele)
toLatLon converts satellite line/element to lat/lon |
double[][] |
toLinEle(double[][] latlon)
toLinEle converts lat/lon to satellite line/element |
Methods inherited from class edu.wisc.ssec.mcidas.AREAnav |
areaCoordToImageCoord, equals, getLineOffset, imageCoordToAreaCoord, isFlippedLineCoordinates, makeAreaNav, makeAreaNav, setFlipLineCoordinates, setImageStart, setMag, setMag, setRes, setRes, setStart |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GMSXnav
public GMSXnav(int[] navBlock)
- constructor: copy nav block to a byte array, eliminating text fields
- Parameters:
navBlock
- - the navigation block from the image file
main
public static void main(java.lang.String[] args)
toLinEle
public double[][] toLinEle(double[][] latlon)
- toLinEle converts lat/lon to satellite line/element
- Specified by:
toLinEle
in class AREAnav
- Parameters:
array
- of lat/long pairs. Where latlon[indexLat][]
are latitudes and latlon[indexLon][] are longitudes.
- Returns:
- linele[][] array of line/element pairs. Where
linele[indexLine][] is a line and linele[indexEle][] is an element.
toLatLon
public double[][] toLatLon(double[][] linele)
- toLatLon converts satellite line/element to lat/lon
- Specified by:
toLatLon
in class AREAnav
- Parameters:
linele[][]
- array of line/element pairs. Where
linele[indexLine][] is a line and linele[indexEle][] is an element.
- Returns:
- array of lat/lon pairs. Where latlon[indexLat][]
are latitudes and latlon[indexLon][] are longitudes.
intToBytes
public static byte[] intToBytes(int v)
- intToBytes converts an int to an array of 4 bytes.
- Parameters:
v
- input value
- Returns:
- the corresponding array of bytes