diff --git a/src/adam_core/propagator/adam_assist.py b/src/adam_core/propagator/adam_assist.py index d39fc3c..668e67e 100644 --- a/src/adam_core/propagator/adam_assist.py +++ b/src/adam_core/propagator/adam_assist.py @@ -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 @@ -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: