Files
skyview.astronomiemuseum.de/public/py/sgp4/earth_gravity.py
T
2026-03-31 09:44:27 +02:00

14 lines
375 B
Python

"""Three earth-gravity models for use with SGP4."""
from collections import namedtuple
from sgp4.propagation import getgravconst
EarthGravity = namedtuple(
'EarthGravity',
'tumin mu radiusearthkm xke j2 j3 j4 j3oj2',
)
wgs72old = EarthGravity(*getgravconst('wgs72old'))
wgs72 = EarthGravity(*getgravconst('wgs72'))
wgs84 = EarthGravity(*getgravconst('wgs84'))