Class 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.

    • Constructor Summary

      Constructors 
      Constructor Description
      EGM96​(java.lang.String offsetsFilePath)
      Construct an instance.
    • Field Detail

      • offsetsFilePath

        protected java.lang.String offsetsFilePath
      • 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.
    • Method Detail

      • loadOffsetFile

        protected void loadOffsetFile()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getOffset

        public double getOffset​(Angle latitude,
                                Angle longitude)
      • gePostOffset

        protected double gePostOffset​(int row,
                                      int col)