Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

egm96-universal

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egm96-universal

A library to convert between EGM96-relative altitudes and WGS84 ellipsoid-relative altitudes

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-31.74%
Maintainers
1
Weekly downloads
 
Created
Source

egm96-universal

Node.js CI npm

A library to convert between EGM96-relative altitudes and WGS84 ellipsoid-relative altitudes.

It uses the EGM96 sample data file provided by the NGA to lookup reference mean sea level and performs bilinear interpolation on the result.

This library is automatically tested by CI on the reference implementation in Fortran.

Works both in the browser and node.js, you can test the result on the demo page.

Usage

Installation

npm install egm96-universal

Import

const egm96 = require('egm96-universal')

or

import * as egm96 from 'egm96-universal'

Getting mean sea level according to EGM96

const msl = egm96.meanSeaLevel(latitudeInDegrees, longitudeInDegrees)
// mean sea level in meters relative to the WGS84 ellipsoid

Convert between WGS84 ellipsoid-relative altitude and EGM96-relative altitude

const egm96Alt = egm96.ellipsoidToEgm96(latitude, longitude, altitude)
const ellipsoidAlt = egm96.egm96ToEllipsoid(latitude, longitude, altitude)

License

See the license file.

Contributing

See the contribution guide.

Keywords

FAQs

Package last updated on 14 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc