Package gov.nasa.worldwind.util
Class EGM96
- java.lang.Object
-
- gov.nasa.worldwind.util.EGM96
-
public class EGM96 extends java.lang.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected BufferWrapper
deltas
protected static Angle
INTERVAL
protected static int
NUM_COLS
protected static int
NUM_ROWS
protected java.lang.String
offsetsFilePath
-
Constructor Summary
Constructors Constructor Description EGM96(java.lang.String offsetsFilePath)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
gePostOffset(int row, int col)
double
getOffset(Angle latitude, Angle longitude)
protected void
loadOffsetFile()
-
-
-
Field Detail
-
offsetsFilePath
protected java.lang.String offsetsFilePath
-
deltas
protected BufferWrapper deltas
-
INTERVAL
protected static Angle INTERVAL
-
NUM_ROWS
protected static int NUM_ROWS
-
NUM_COLS
protected static int NUM_COLS
-
-
Constructor Detail
-
EGM96
public EGM96(java.lang.String offsetsFilePath) throws java.io.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:
java.io.IOException
- if there's a problem reading the file.
-
-