edu.wisc.ssec.mcidas
Class GOESnav
- java.lang.Object
-
- edu.wisc.ssec.mcidas.AREAnav
-
- edu.wisc.ssec.mcidas.GOESnav
-
- All Implemented Interfaces:
- java.io.Serializable
public final class GOESnav extends AREAnav
Navigation class for GOES (GOES D-H) type nav. This code was modified from the original FORTRAN code (nvxgoes.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:
- McIDAS Programmer's Manual, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description GOESnav(int[] iarr)Set up for the real math work.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]getSubpoint()Get the lat,lon of the subpoint if availabledouble[][]toLatLon(double[][] linele)converts from satellite coordinates to latitude/longitudefloat[][]toLatLon(float[][] linele)converts from satellite coordinates to latitude/longitudedouble[][]toLinEle(double[][] latlon)toLinEle converts lat/long to satellite line/elementfloat[][]toLinEle(float[][] latlon)toLinEle converts lat/long to satellite line/element-
Methods inherited from class edu.wisc.ssec.mcidas.AREAnav
areaCoordToImageCoord, areaCoordToImageCoord, areaCoordToImageCoord, areaCoordToImageCoord, canApproximateWithSpline, doubleToFloat, equals, floatToDouble, getLineOffset, imageCoordToAreaCoord, imageCoordToAreaCoord, imageCoordToAreaCoord, imageCoordToAreaCoord, isFlippedLineCoordinates, makeAreaNav, makeAreaNav, setFlipLineCoordinates, setImageStart, setMag, setMag, setRes, setRes, setStart, toString
-
-
-
-
Constructor Detail
-
GOESnav
public GOESnav(int[] iarr) throws java.lang.IllegalArgumentExceptionSet up for the real math work. Must pass in the int array of the GOES nav 'codicil'.- Parameters:
iarr- the nav block from the image file- Throws:
java.lang.IllegalArgumentException- if the nav block is not a GOES type.
-
-
Method Detail
-
toLatLon
public float[][] toLatLon(float[][] linele)
converts from satellite coordinates to latitude/longitude- Overrides:
toLatLonin classAREAnav- Parameters:
linele- array of line/element pairs. Where linele[indexLine][] is a 'line' and linele[indexEle][] is an element. These are in 'file' coordinates (not "image" coordinates.)- Returns:
- latlon[][] array of lat/long pairs. Output array is latlon[indexLat][] of latitudes and latlon[indexLon][] of longitudes.
-
toLatLon
public double[][] toLatLon(double[][] linele)
Description copied from class:AREAnavconverts from satellite coordinates to latitude/longitude- Specified by:
toLatLonin classAREAnav- Parameters:
linele- array of line/element pairs. Where linele[indexLine][] is a 'line' and linele[indexEle][] is an element. These are in 'file' coordinates (not "image" coordinates.)- Returns:
- latlon[][] array of lat/long pairs. Output array is latlon[indexLat][] of latitudes and latlon[indexLon][] of longitudes.
-
toLinEle
public float[][] toLinEle(float[][] latlon)
toLinEle converts lat/long to satellite line/element- Overrides:
toLinElein classAREAnav- Parameters:
latlon- 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. These are in 'file' coordinates (not "image" coordinates);
-
toLinEle
public double[][] toLinEle(double[][] latlon)
Description copied from class:AREAnavtoLinEle converts lat/long to satellite line/element- Specified by:
toLinElein classAREAnav- Parameters:
latlon- 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. These are in 'file' coordinates (not "image" coordinates);
-
getSubpoint
public double[] getSubpoint()
Get the lat,lon of the subpoint if available- Overrides:
getSubpointin classAREAnav- Returns:
- double[2] {lat, lon}
-
-
DMelt 3.0 © DataMelt by jWork.ORG