Skip to content

Commit

Permalink
Add EGM96 datum conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPelletier committed Nov 14, 2023
1 parent 3b16511 commit 9d3e43f
Show file tree
Hide file tree
Showing 5 changed files with 27,116 additions and 0 deletions.
3 changes: 3 additions & 0 deletions monitoring/mock_uss/riddp/routes_observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from .config import KEY_RID_VERSION
from .database import db
from monitoring.monitorlib.formatting import limit_resolution
from monitoring.monitorlib.geo import egm96_geoid_offset


def _make_flight_observation(
Expand Down Expand Up @@ -61,6 +62,8 @@ def _make_flight_observation(
paths.append(current_path)

p = flight.most_recent_position
msl_alt = p.alt - egm96_geoid_offset(s2sphere.LatLng.from_degrees(p.lat, p.lng))
# TODO: Return msl_alt in observation information
current_state = observation_api.CurrentState(
timestamp=p.time.isoformat(),
operational_status=flight.operational_status,
Expand Down
9 changes: 9 additions & 0 deletions monitoring/monitorlib/assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# monitorlib assets

This folder contains non-code artifacts used by monitorlib.

## WW15MGH.DAC

EGM96 geoid offsets from WGS84 ellipsoid in binary 15-minute grid format.

Previously hosted at: http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/binary/WW15MGH.DAC
Loading

0 comments on commit 9d3e43f

Please sign in to comment.