Module ephemeris

Module ephemeris 

Source

Structs§

MeanElements
Mean Keplerian elements at epoch with linear secular rates.
PlanetPosition
Heliocentric position of a planet in ecliptic coordinates.

Enums§

Planet
Planets supported by the ephemeris

Constants§

J2000_JD
Julian Date of J2000.0 epoch (2000-01-01 12:00:00 TT)
JULIAN_CENTURY_DAYS 🔒
Julian century in days
SECONDS_PER_DAY 🔒
Seconds per day

Functions§

arrival_position
Compute the position of a destination planet at arrival, given departure date and transfer time.
calendar_to_jd
Convert calendar date to Julian Date.
elapsed_days
Elapsed time between two Julian Dates in days.
elapsed_hours
Elapsed time between two Julian Dates in hours.
hohmann_phase_angle
Required phase angle for a Hohmann transfer between two circular orbits.
hohmann_transfer_time
Hohmann transfer time between two planets (seconds).
jd_to_calendar
Convert Julian Date to calendar date (year, month, day with fractional part).
jd_to_date_string
Format Julian Date as a human-readable date string (YYYY-MM-DD).
mean_elements
Get mean Keplerian elements for a planet.
next_hohmann_window
Find the next launch window for a Hohmann transfer after a given Julian Date.
phase_angle
Compute the angular separation between two planets at a given Julian Date.
planet_longitude
Compute the ecliptic longitude of a planet at a given Julian Date (radians).
planet_position
Compute heliocentric position of a planet at a given Julian Date.
synodic_period
Synodic period between two planets (seconds).