public class KALPnav extends AREAnav
AreaFile af;
try {
af = new AreaFile("/home/user/mcidas/data/AREA0001");
} catch (AreaFileException e) {
System.out.println(e);
return;
}
int[] dir;
try { dir=af.getDir();
} catch (AreaFileException e){
System.out.println(e);
return;
}
int[] nav;
try { nav=af.getNav();
} catch (AreaFileException e){
System.out.println(e);
return;
}
try {
GVARnav ng = new GVARnav(nav); // XXXXnav is the specific implementation
} catch (IllegalArgumentException excp) {
System.out.println(excp);
return;
}
ng.setImageStart(dir[5], dir[6]);
ng.setRes(dir[11], dir[12]);
ng.setMag(1,1);
ng.setStart(0,0);
......................
Constructor and Description |
---|
KALPnav(int[] iparms) |
KALPnav(int ifunc,
int[] iparms) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
double[][] |
toLatLon(double[][] linele)
converts from satellite coordinates to latitude/longitude
|
float[][] |
toLatLon(float[][] linele)
converts from satellite coordinates to latitude/longitude.
|
double[][] |
toLinEle(double[][] latlon)
toLinEle converts lat/long to satellite line/element
|
float[][] |
toLinEle(float[][] latlon)
toLinEle converts lat/long to satellite line/element
This implementation converts the input array to doubles
and calls the double signature of
AREAnav.toLinEle(double[][]) . |
areaCoordToImageCoord, areaCoordToImageCoord, areaCoordToImageCoord, areaCoordToImageCoord, canApproximateWithSpline, doubleToFloat, equals, floatToDouble, getLineOffset, getSubpoint, imageCoordToAreaCoord, imageCoordToAreaCoord, imageCoordToAreaCoord, imageCoordToAreaCoord, isFlippedLineCoordinates, makeAreaNav, makeAreaNav, setFlipLineCoordinates, setImageStart, setMag, setMag, setRes, setRes, setStart, toString
public KALPnav(int[] iparms)
public KALPnav(int ifunc, int[] iparms)
public float[][] toLatLon(float[][] linele)
AREAnav
AREAnav.toLatLon(double[][])
.
Subclasses should implement a real float version for better
performance.toLatLon
in class AREAnav
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.)public float[][] toLinEle(float[][] latlon)
AREAnav
AREAnav.toLinEle(double[][])
.
Subclasses should implement a real float version for better
performance.toLinEle
in class AREAnav
latlon
- array of lat/long pairs. Where latlon[indexLat][]
are latitudes and latlon[indexLon][] are longitudes.public double[][] toLinEle(double[][] latlon)
AREAnav
toLinEle
in class AREAnav
latlon
- array of lat/long pairs. Where latlon[indexLat][]
are latitudes and latlon[indexLon][] are longitudes.public double[][] toLatLon(double[][] linele)
AREAnav
toLatLon
in class AREAnav
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.)public static void main(String[] args)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.