Coverage for pyguymer3/_consts.py: 100%
6 statements
« prev ^ index » next coverage.py v7.10.3, created at 2025-08-16 08:31 +0000
« prev ^ index » next coverage.py v7.10.3, created at 2025-08-16 08:31 +0000
1#!/usr/bin/env python3
3# Import standard modules ...
4import math
6# Set constants ...
7EARTH_MOON_DISTANCE = 385000000.0 # [m]
8RADIUS_OF_EARTH = 6371008.8 # [m]
10# Set derived constants ...
11CIRCUMFERENCE_OF_EARTH = 2.0 * math.pi * RADIUS_OF_EARTH # [m]
12RESOLUTION_OF_EARTH = CIRCUMFERENCE_OF_EARTH / 360.0 # [m/°]
14# Set limits ...
15# NOTE: Running "python3.12 scripts/plotLimitOfVincenty.py --degree-interval 1"
16# tells me that the minimum maximum distance which the Vincenty formula
17# works is 19,970 km (which, looking at the associated PNG, occurs for
18# origins on the equator).
19MAXIMUM_VINCENTY = 19970.0e3 # [m]