ades¶
This submodule loads optical astrometry, space-based astrometry and radar data
from MPC ADES files, in both psv and xml formats. The supported record layouts are
described by the Minor Planet Center for
optical, radar, stellar occultation and offset observations. The
read_ades_data() function is the main interface for loading the data
and converting it to objects that Tudat can process further; see also
tracking_data. Offset observations, radar observations that are not
w.r.t. the centre of mass, and observations from Earth-based roving observers
are not yet supported, and are skipped with a warning.
- read_ades_data(file_path: str, frame: str = 'J2000', custom_name: str | None = None, add_weights: bool | None = False, add_star_catalog_corrections: bool | None = False, add_ancillary_data: bool | None = False, weighing_scheme: str | None = '')[source]¶
Function to read an MPC ADES file into TrackingData objects.
Function to read the observations in an MPC ADES file (in XML or PSV format), and convert them to tracking data objects that can be used to create an observation collection. The file is first parsed into an astropy table using
parse_ades_file(). Stellar occultation observations are converted to the right ascension and declination of the target, and are then processed in the same manner as optical observations, usingread_astropy_optical_data(). Radar observations are converted usingradar_data_to_tracking_data().- Parameters:
file_path (str) – Path to the MPC ADES file (in XML or PSV format).
frame (str, default "J2000") – Reference frame of the input observations, e.g. the frame in which the right ascension and declination are defined.
custom_name (str | None, default None) – Optional target name assigned to all observations, to be used if the file-provided object name is different from the Tudat body name.
add_weights (bool, default False) – Whether to assign the default optical weighing scheme of [47].
add_star_catalog_corrections (bool, default False) – Whether to attach star-catalog bias corrections following [12].
add_ancillary_data (bool, default False) – Whether to attach available optical ancillary metadata.
weighing_scheme (str, default "") – Weighing scheme that is to be used for the observations:
"VFCC17"(see [47]),"ADES"(weights computed from the rmsRA and rmsDec uncertainties of each observation) or"ADES_NIGHT"(as"ADES", but with the weights divided by the number of observations of the same target, from the same observatory, in the same local night, as defined for"VFCC17"). The weights are computed when the observation collection is created. If empty, no weights are assigned.
- Returns:
Tracking data objects and supplementary data objects.
- Return type:
Notes
Offset observations, radar observations that are not w.r.t. the center of mass of the target, and observations from Earth-based roving observers (with positions given in WGS84, ITRF or IAU) are not yet supported, and are skipped (with a warning).
Supporting API¶
The function below is used internally by read_ades_data() to parse the ADES
records into an astropy table. It does not create Tudat
tracking-data objects, but can be used to inspect parsed optical, radar, stellar occultations and offset data.
Radar observations are available in the returned table’s metadata as a canonical radar table.
Ability to read stellar occultations and offset data is currently being implemented.
- parse_ades_file(file_path: str)[source]¶
Parses MPC observation data in the ADES format.
The function uses vectorized Pandas operations for efficiency. The input records may contain optical observations, space-based S/s pairs, and radar R/r pairs. Radar observations are stored as a canonical pandas table in
table.meta[RADAR_TABLE_META_KEY]. A blank radar bounce-point field is interpreted as centre of mass (C), as found in published historical records whose corresponding JPL entries use that value. Offset observations, and radar observations that are not w.r.t. the centre of mass, are not yet supported, and are skipped with a warning.- Parameters:
file_path (str) – The path to the ADES file (in PSV or XML format)
- Returns:
Astropy Table
- Return type:
Table
- Raises:
ValueError – If the file is empty, if the format is not the expected psv or xml format