forked from interuss/monitoring
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mock_uss, monitorlib] Add EGM96 datum conversion (interuss#342)
* Add EGM96 datum conversion * make format * Address comments and `make format`
- Loading branch information
1 parent
9c0e2f1
commit 2825146
Showing
17 changed files
with
27,492 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/monitorlib/geo/Altitude.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "monitoring.monitorlib.geo.Altitude, as defined in monitoring/monitorlib/geo.py", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"reference": { | ||
"enum": [ | ||
"W84", | ||
"SFC" | ||
], | ||
"type": "string" | ||
}, | ||
"units": { | ||
"enum": [ | ||
"M", | ||
"FT" | ||
], | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"reference", | ||
"units", | ||
"value" | ||
], | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/monitorlib/geo/Circle.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "monitoring.monitorlib.geo.Circle, as defined in monitoring/monitorlib/geo.py", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"center": { | ||
"$ref": "LatLngPoint.json" | ||
}, | ||
"radius": { | ||
"$ref": "Radius.json" | ||
} | ||
}, | ||
"required": [ | ||
"center", | ||
"radius" | ||
], | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/monitorlib/geo/Polygon.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "monitoring.monitorlib.geo.Polygon, as defined in monitoring/monitorlib/geo.py", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"vertices": { | ||
"items": { | ||
"$ref": "LatLngPoint.json" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"vertices" | ||
], | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/monitorlib/geo/Radius.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "monitoring.monitorlib.geo.Radius, as defined in monitoring/monitorlib/geo.py", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"units": { | ||
"enum": [ | ||
"M", | ||
"FT" | ||
], | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"units", | ||
"value" | ||
], | ||
"type": "object" | ||
} |
86 changes: 86 additions & 0 deletions
86
schemas/monitoring/monitorlib/geotemporal/Volume4DTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/monitorlib/geotemporal/Volume4DTemplate.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "monitoring.monitorlib.geotemporal.Volume4DTemplate, as defined in monitoring/monitorlib/geotemporal.py", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"altitude_lower": { | ||
"description": "The minimum altitude at which the virtual user will fly while using this volume for their flight.", | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "../geo/Altitude.json" | ||
} | ||
] | ||
}, | ||
"altitude_upper": { | ||
"description": "The maximum altitude at which the virtual user will fly while using this volume for their flight.", | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "../geo/Altitude.json" | ||
} | ||
] | ||
}, | ||
"duration": { | ||
"description": "If only one of start_time and end_time is specified, then the other time should be separated from the specified time by this amount. May not be defined in both start_time and end_time are defined.", | ||
"format": "duration", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"end_time": { | ||
"description": "The time at which the virtual user will be finished using the specified geospatial area for their flight. May not be defined if duration and start_time are defined.", | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "../temporal/TestTime.json" | ||
} | ||
] | ||
}, | ||
"outline_circle": { | ||
"description": "Circular outline/footprint of the specified area. May not be defined if outline_polygon is defined.", | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "../geo/Circle.json" | ||
} | ||
] | ||
}, | ||
"outline_polygon": { | ||
"description": "Polygonal 2D outline/footprint of the specified area. May not be defined if outline_circle is defined.", | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "../geo/Polygon.json" | ||
} | ||
] | ||
}, | ||
"start_time": { | ||
"description": "The time at which the virtual user may start using the specified geospatial area for their flight. May not be defined if duration and end_time are defined.", | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "../temporal/TestTime.json" | ||
} | ||
] | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/monitorlib/temporal/NextDay.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "monitoring.monitorlib.temporal.NextDay, as defined in monitoring/monitorlib/temporal.py", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"days_of_the_week": { | ||
"description": "Acceptable days of the week. Omit to indicate that any day of the week is acceptable.", | ||
"items": { | ||
"enum": [ | ||
"Mo", | ||
"Tu", | ||
"We", | ||
"Th", | ||
"Fr", | ||
"Sa", | ||
"Su" | ||
], | ||
"type": "string" | ||
}, | ||
"type": [ | ||
"array", | ||
"null" | ||
] | ||
}, | ||
"starting_from": { | ||
"$ref": "TestTime.json", | ||
"description": "The time after which the first instance of one of the days should be found." | ||
}, | ||
"time_zone": { | ||
"description": "Time zone in which \"day\" is understood. Examples:\n * \"local\" (local time of machine running this code)\n * \"Z\" (Zulu time)\n * \"-08:00\" (ISO time zone)\n * \"US/Pacific\" (IANA time zone)", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"starting_from", | ||
"time_zone" | ||
], | ||
"type": "object" | ||
} |
29 changes: 29 additions & 0 deletions
29
schemas/monitoring/monitorlib/temporal/NextSunPosition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/monitorlib/temporal/NextSunPosition.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "monitoring.monitorlib.temporal.NextSunPosition, as defined in monitoring/monitorlib/temporal.py", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"elevation_deg": { | ||
"description": "Elevation of the center of the sun above horizontal, in degrees.", | ||
"type": "number" | ||
}, | ||
"observed_from": { | ||
"$ref": "../geo/LatLngPoint.json", | ||
"description": "The location on earth observing the sun." | ||
}, | ||
"starting_from": { | ||
"$ref": "TestTime.json", | ||
"description": "The time after which the first time the sun is at the specified position should be found." | ||
} | ||
}, | ||
"required": [ | ||
"elevation_deg", | ||
"observed_from", | ||
"starting_from" | ||
], | ||
"type": "object" | ||
} |
Oops, something went wrong.