NASA World Wind

gov.nasa.worldwind.util
Class EGM96

java.lang.Object
  extended by 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.


Field Summary
protected  BufferWrapper deltas
           
protected static Angle INTERVAL
           
protected static int NUM_COLS
           
protected static int NUM_ROWS
           
protected  String offsetsFilePath
           
 
Constructor Summary
EGM96(String offsetsFilePath)
          Construct an instance.
 
Method Summary
protected  double gePostOffset(int row, int col)
           
 double getOffset(Angle latitude, Angle longitude)
           
protected  void loadOffsetFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

gePostOffset

protected double gePostOffset(int row,
                              int col)

getOffset

public double getOffset(Angle latitude,
                        Angle longitude)

loadOffsetFile

protected void loadOffsetFile()
                       throws IOException
Throws:
IOException

NASA World Wind