earthgravitymodel1996

Tools for working with the Earth Gravity Model 1996 (EGM96). Primarily useful for calculating the geoid height or mean sea level height at a given longitude and latitude.

Usage no npm install needed!

<script type="module">
  import earthgravitymodel1996 from 'https://cdn.skypack.dev/earthgravitymodel1996';
</script>

README

Earth Gravity Model 1996

Tools for working with the Earth Gravity Model 1996 (EGM96). Primarily useful for calculating the geoid height or mean sea level height at a given longitude and latitude.

Originally written as part of TerriaJS, now a separate library.

const egm96 = require("earthgravitymodel1996");

// Get the geoid height in Sydney Asustralia
const geoidHeight = egm96.getHeight(
    151.2 * Math.PI / 180.0,
    -33.8 * Math.PI / 180.0
);