public class EGM96
extends java.lang.Object
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.
| Modifier and Type | Field and Description |
|---|---|
protected BufferWrapper |
deltas |
protected static Angle |
INTERVAL |
protected static int |
NUM_COLS |
protected static int |
NUM_ROWS |
protected java.lang.String |
offsetsFilePath |
| Constructor and Description |
|---|
EGM96(java.lang.String offsetsFilePath)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
gePostOffset(int row,
int col) |
double |
getOffset(Angle latitude,
Angle longitude) |
protected void |
loadOffsetFile() |
protected BufferWrapper deltas
protected static Angle INTERVAL
protected static int NUM_COLS
protected static int NUM_ROWS
protected java.lang.String offsetsFilePath
public EGM96(java.lang.String offsetsFilePath)
throws java.io.IOException
offsetsFilePath - a path pointing to a file with the geoid offsets. See the class description above for a
description of the file.java.io.IOException - on error.