adam_core.coordinates.origin module¶
- class adam_core.coordinates.origin.OriginCodes(value)[source]¶
Bases:
Enum- SOLAR_SYSTEM_BARYCENTER = 0¶
- MERCURY_BARYCENTER = 1¶
- VENUS_BARYCENTER = 2¶
- EARTH_MOON_BARYCENTER = 3¶
- MARS_BARYCENTER = 4¶
- JUPITER_BARYCENTER = 5¶
- SATURN_BARYCENTER = 6¶
- URANUS_BARYCENTER = 7¶
- NEPTUNE_BARYCENTER = 8¶
- SUN = 10¶
- MERCURY = 199¶
- VENUS = 299¶
- EARTH = 399¶
- MOON = 301¶
- MARS = 499¶
- JUPITER = 599¶
- SATURN = 699¶
- URANUS = 799¶
- NEPTUNE = 899¶
- class adam_core.coordinates.origin.OriginGravitationalParameters(value)[source]¶
-
- MERCURY_BARYCENTER = 4.912547450564196e-11¶
- VENUS_BARYCENTER = 7.24345233264412e-10¶
- MARS_BARYCENTER = 9.549548829780195e-11¶
- JUPITER_BARYCENTER = 2.8253458252257923e-07¶
- SATURN_BARYCENTER = 8.45970599337629e-08¶
- URANUS_BARYCENTER = 1.2920265649682404e-08¶
- NEPTUNE_BARYCENTER = 1.5243573478851052e-08¶
- PLUTO_BARYCENTER = 2.175096464893358e-12¶
- SUN = 0.00029591220828411956¶
- MERCURY = 4.9125001948001294e-11¶
- VENUS = 7.24345233264412e-10¶
- EARTH = 8.8876924467066e-10¶
- MOON = 1.0931894623004143e-11¶
- classmethod SOLAR_SYSTEM_BARYCENTER() float[source]¶
Return the effective gravitational parameter of the Solar System barycenter as approximated by adding the gravitational parameters of the Sun, Mercury, Venus, Earth, Moon, Mars, Jupiter, Uranus, and Neptune.
This should only be used for calculating osculating elements with respect to the Solar System barycenter.
Horizons’s effective gravitational parameter (as of 2025-11-26) for osculating elements with respect to the Solar System barycenter is 1.3289051882019876E+11 km^3/s^2 which agrees to within 1e-6 with the value calculated here. Discrepancies are likely due to the inclusion of small bodies not included in the calculation here.
- Returns:
mu – The gravitational parameter of the Solar System barycenter in au^3 / day^2.
- Return type:
- class adam_core.coordinates.origin.Origin(table: Table, **kwargs: int | float | str)[source]¶
Bases:
Table- code¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- classmethod from_OriginCodes(code: OriginCodes, size: int = 1) Origin[source]¶
- as_OriginCodes() OriginCodes[source]¶
Convert the origin codes to an ~adam_core.coordinates.origin.OriginCodes object.
- Returns:
Origin codes as an ~adam_core.coordinates.origin.OriginCodes object.
- Return type:
- mu() ndarray[source]¶
Return the gravitational parameter of the origin.
- Returns:
mu – The gravitational parameter of the origin in au^3 / day^2.
- Return type:
~numpy.ndarray (N)
- Raises:
ValueError – If the origin code is not recognized.
- schema: ClassVar[pa.Schema] = code: large_string not null¶