Skip to content

Commit

Permalink
Use DE4XX's value for the Earth's equatorial radius
Browse files Browse the repository at this point in the history
  • Loading branch information
moeyensj committed May 23, 2024
1 parent 3ae92cd commit ce464ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/adam_core/propagator/adam_assist.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import quivr as qv
import rebound
import urllib3
from adam_core.constants import KM_PER_AU
from adam_core.constants import KM_PER_AU, Constants
from adam_core.coordinates import CartesianCoordinates, Origin, transform_coordinates
from adam_core.coordinates.origin import OriginCodes
from adam_core.dynamics.impacts import EarthImpacts, ImpactMixin
Expand All @@ -31,7 +31,9 @@

DATA_DIR = os.getenv("ASSIST_DATA_DIR", "~/.adam_assist_data")

EARTH_RADIUS_KM = 6371.0
# Use the Earth's equatorial radius as used in DE4XX ephemerides
# adam_core defines it in au but we need it in km
EARTH_RADIUS_KM = Constants.R_EARTH * KM_PER_AU


def download_jpl_ephemeris_files(data_dir: str = DATA_DIR) -> None:
Expand Down

0 comments on commit ce464ff

Please sign in to comment.