sorcha.ephemeris.simulation_parsing
Classes
Class containing various utility tools related to the calculation of the observatory position |
Functions
|
Converts a MJD value in TAI to SPICE ephemeris time |
|
Parses the input orbit row, converting it to the format expected by |
|
Parses the input orbit row, computing the perihelion for the maximum |
Module Contents
- mjd_tai_to_epoch(mjd_tai)[source]
Converts a MJD value in TAI to SPICE ephemeris time
- Parameters:
mjd_tai (float) -- Input mjd
- Returns:
epoch
- Return type:
Ephemeris time
- parse_orbit_row(row, epochJD_TDB, ephem, sun_dict, gm_sun, gm_total)[source]
Parses the input orbit row, converting it to the format expected by the ephemeris generation code later on
- Parameters:
row (Pandas dataframe row) -- Row of the input dataframe
epochJD_TDB (float) -- epoch of the elements, in JD TDB
ephem (Ephem) -- ASSIST ephemeris object
sun_dict (dict) -- Dictionary with the position of the Sun at each epoch
gm_sun (float) -- Standard gravitational parameter GM for the Sun
gm_total (float) -- Standard gravitational parameter GM for the Solar System barycenter
- Returns:
State vector (position, velocity)
- Return type:
tuple
- get_perihelion_row(row, epochJD_TDB, ephem, ssb_dict, gm_sun, gm_total)[source]
Parses the input orbit row, computing the perihelion for the maximum apparent magnitude filter
- Parameters:
row (Pandas dataframe row) -- Row of the input dataframe
epochJD_TDB (float) -- epoch of the elements, in JD TDB
ephem (Ephem) -- ASSIST ephemeris object
ssb_dict (dict) -- Dictionary with the position of the Sun at each epoch
gm_sun (float) -- Standard gravitational parameter GM for the Sun
gm_total (float) -- Standard gravitational parameter GM for the Solar System barycenter
- Returns:
Cometary elements (q, e, inc, node, argPeri, Tp (in MJD!))
- Return type:
tuple
- class Observatory(args, auxconfigs, oc_file=None)[source]
Class containing various utility tools related to the calculation of the observatory position
- convert_to_geocentric(obs_location: dict) tuple[source]
Converts the observatory location to geocentric coordinates
- Parameters:
obs_location (dict) -- Dictionary with Longitude and sin/cos of the observatory Latitude
- Returns:
Geocentric position (x,y,z)
- Return type:
tuple
- barycentricObservatory(et, obsCode, Rearth=RADIUS_EARTH_KM)[source]
Computes the barycentric position of the observatory
- Parameters:
et (float) -- JPL internal ephemeris time
obsCode (str) -- MPC Observatory code
Rearth (float default=RADIUS_EARTH_KM) -- Radius of the Earth, units[km]
- Returns:
Barycentric position of the observatory (x,y,z)
- Return type:
array (3,)