mubody.core.ephemeris.Ephemeris#
- class mubody.core.ephemeris.Ephemeris(epoch=<Time object: scale='utc' format='iso' value=2000-01-01 11:58:55.816>, bodies=['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune', 'Pluto', 'Luna', 'Sun'], tf=31536000, dT=86400, reference='Sun', test=False)#
Ephemeris class
- name#
Name of the model
- Type:
str
- __init__(epoch=<Time object: scale='utc' format='iso' value=2000-01-01 11:58:55.816>, bodies=['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune', 'Pluto', 'Luna', 'Sun'], tf=31536000, dT=86400, reference='Sun', test=False)#
Constructor
- Parameters:
epoch (DateTime class) – Epoch used as time reference
bodies (list) – List of strings with the names of the celestial bodies whose ephemeris are generated
tf (float) – Extent of time for which the ephemeris are generated [s]
dT (float) – Time step [s]
reference (str) – NAIF ID of the body used as reference for the ephemeris
Methods
__init__([epoch, bodies, tf, dT, reference, ...])Constructor
check_kernels_files()Checks if the required kernels files are present in the data folder.
check_kernels_load()Checks if the required kernels files have been loaded.
download_kernels()Downloads the required kernels.
generate_ephemeris_dict(epoch, bodies, tf, ...)Retrieves ephemeris from spice kernels and stores them for interpolation
get_body_ID(body_identifier)Return the NAIF ID of the body.
get_eph_r(date, body, time, reference)Interpolates position from ephemeris
get_eph_r_sp(date, body, time, reference)Retrieves position of body from the spice kernels ephemeris.
get_eph_v(date, body, time, reference)Interpolates velocity from ephemeris
get_eph_v_sp(date, body, time, reference)Retrieves velocity of body from the spice kernels ephemeris.
get_spice_eph(date, body, time, reference)Retrieves ephemeris from spice kernels
load_ephemeris()Retrieves ephemeris from spice kernels and stores them for interpolation
load_kernels()Load SPICE kernels.
r(body, time)Interpolates position from ephemeris
r_sp(body, time)Retrieves position of body from the spice kernels ephemeris.
v(body, time)Interpolates velocity from ephemeris
v_sp(body, time)Retrieves velocity of body from the spice kernels ephemeris.