gov.nasa.worldwind.util
Class EGM96
java.lang.Object
gov.nasa.worldwind.util.EGM96
public class EGM96
- extends Object
Computes EGM96 geoid offsets.
A file with the offset grid must be passed to the constructor. This file must have 721 rows of 1440 2-byte integer
values. Each row corresponding to a latitude, with the first row corresponding to +90 degrees (90 North). The integer
values must be in centimeters.
Once constructed, the instance can be passed to EllipsoidalGlobe.applyEGMA96Offsets(String)
to apply the offets to elevations produced by the globe.
|
Constructor Summary |
EGM96(String offsetsFilePath)
Construct an instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
deltas
protected BufferWrapper deltas
INTERVAL
protected static Angle INTERVAL
NUM_COLS
protected static int NUM_COLS
NUM_ROWS
protected static int NUM_ROWS
offsetsFilePath
protected String offsetsFilePath
EGM96
public EGM96(String offsetsFilePath)
throws IOException
- Construct an instance.
- Parameters:
offsetsFilePath - a path pointing to a file with the geoid offsets. See the class description above for a
description of the file.
- Throws:
IOException
gePostOffset
protected double gePostOffset(int row,
int col)
getOffset
public double getOffset(Angle latitude,
Angle longitude)
loadOffsetFile
protected void loadOffsetFile()
throws IOException
- Throws:
IOException