obs_80_cols¶
This submodule loads optical astrometry, space-based astrometry and radar data
from MPC 80-column files. The supported fixed-width record layouts are
described by the Minor Planet Center for
optical and space-based observations
and radar observations. The
read_80_column_data() function is the main interface for loading the data
and converting it to objects that Tudat can process further; see also
tracking_data.
- read_80_column_data(file_names: list[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]¶
Read MPC 80-column files into TrackingData objects.
The input files are parsed as MPC fixed-width observation records. The
parse_80cols_file()function reads the fixed-width records into an astropy table with standardized optical astrometry columns and radar metadata. Optical and space-astrometry rows are passed toread_astropy_optical_data(), which creates the augmented optical table withcreate_augmented_optical_table()and converts the observations to Tudat optical tracking data through the common optical-data conversion pipeline. Radar metadata are converted throughradar_data_to_tracking_data().- Parameters:
file_names (list[str]) – Paths to MPC 80-column files containing optical, space-based or radar observations.
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. To be used only in special cases where additional metadata is to be associated with the observations.
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
For radar range observation-model time-scale requirements, see
radar_data_to_tracking_data().
Supporting API¶
The function below is used internally by read_80_column_data() to parse
the fixed-width MPC records into an astropy table. It does not create Tudat
tracking-data objects, but can be used to inspect parsed optical and
space-based astrometry. Radar observations are available in the returned
table’s metadata as a canonical radar table.
- parse_80cols_file(filename: str | list[str]) astropy.table.table.Table[source]¶
Parse MPC 80-column observation files into an astropy table.
This is a supporting parser used by
read_80_column_data(). In the typical Tudat workflow, callread_80_column_data()instead, so the parsed observations are converted to Tudat tracking-data objects.- Parameters:
filename (str | list[str]) – Path to one MPC 80-column file, or paths to multiple files. Each record must follow the MPC fixed-width optical, space-based or radar format.
- Returns:
Astropy table with standardized optical astrometry columns, including object identifiers, observation epochs, right ascension, declination, observatory code, magnitude, band, MPC note fields, and catalog field. Canonical radar data are stored in
table.meta[RADAR_TABLE_META_KEY].- Return type:
Table