layup.constants

Physical constants for layup, defined once.

Before this module these values were re-declared in several places (orbitfit.py, predict.py, iod.py, utilities/data_processing_utilities.py). The duplicates happened to agree numerically, but independent definitions are a drift hazard – e.g. SPEED_OF_LIGHT was written two different ways (via metres in some modules, via kilometres in another) that only coincidentally produced the same value. Importing everything from here gives a single, citable source of truth.

Units follow layup’s internal convention: distances in astronomical units (au), times in days, so GM values are in au^3/day^2 and the speed of light is in au/day.

Attributes

AU_M

AU_KM

C_M_PER_S

SPEED_OF_LIGHT

MU_SUN

GMtotal

Module Contents

AU_M = 149597870700[source]
AU_KM = 149597870.7[source]
C_M_PER_S = 299792458.0[source]
SPEED_OF_LIGHT = 173.14463267424034[source]
MU_SUN = 0.00029591220828559104[source]
GMtotal = 0.0002963092748799319[source]