ifms

IFMS tracking-data loading.

IFMS files contain radio tracking data, typically closed-loop Doppler data, for a number of ESA deep space missions, optionally with station tropospheric corrections that can be applied during loading. This submodule contains functionality to load Doppler tracking data from Level 2 IFMS files. The file format is described in IFMS Doppler Processing Software : Level 1a to Level 2, Table 3-2 and 3-3.

The read_ifms_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_ifms_data(ifms_file_names: list[str], spacecraft_name: str, ground_station_names: list[str], earth_name: str = 'Earth', apply_tropospheric_correction: bool = True, remove_invalid_lines: bool = True, frequency_bands: list[str] = [], reception_reference_frequency_band: str = '', doppler_reference_frequency: float = nan) → tuple[list[tudatpy.kernel.data_input.tracking_data.TrackingData], list[tudatpy.kernel.data_input.tracking_data.TrackingSupplementaryData]]

Load Level 2 IFMS Doppler files into tracking data and supplementary data objects.

The file format is described in IFMS Doppler Processing Software : Level 1a to Level 2, Table 3-2 and 3-3. The reader parses each IFMS file, attaches the corresponding ground station name and optional frequency-band metadata, and converts the resulting records to Tudat TrackingData and TrackingSupplementaryData objects. When apply_tropospheric_correction is True, the tropospheric correction is subtracted from the averaged-frequency observable before the tracking-data objects are created.

Parameters:
  • ifms_file_names (list[str]) – Paths to IFMS files.

  • spacecraft_name (str) – Name assigned to the spacecraft link end (to be used for all files).

  • ground_station_names (list[str]) – Names assigned to receiving ground stations, per file.

  • earth_name (str, default="Earth") – Name assigned to the Earth body (to be used only when it is needed to place the ground stations on a body not named ‘Earth’).

  • apply_tropospheric_correction (bool, default=True) – Whether the troposphere correction column is applied (to be used for all files).

  • remove_invalid_lines (bool, default=True) – Whether records with invalid frequencies or corrections are skipped (to be used for all files).

  • frequency_bands (list[str], default=[]) – Frequency-band identifiers used for supplementary data (to be used for all files). Allowed values are "S-band", "X-band", "Ka-band", and "Ku-band".

  • reception_reference_frequency_band (str, optional) – Reference reception frequency band (to be used for all files), using the same string convention as frequency_bands.

  • doppler_reference_frequency (float, optional) – Reference Doppler frequency (to be used for all files).

Returns:

Tracking data objects and supplementary data objects.

Return type:

tuple[list[TrackingData], list[TrackingSupplementaryData]]

Example

In this example, we load two IFMS files for Mars Express (MEX), tracked by New Norcia (NNOR) in X-band. The IFMS files can be downloaded from the ESA PSA archive.

from tudatpy.data_input.tracking_data.ifms import read_ifms_data

sc_name = "MEX"

ifms_file_names = [
    "M32ICL2L02_D2X_150050821_00.TAB",
    "M32ICL2L02_D2X_150080523_00.TAB",
]

station_mapping = {"32": "NNOR"}
ground_station_names_per_file = [station_mapping[f[1:3]] for f in ifms_file_names]

tracking_data, tracking_supplementary_data = read_ifms_data(
    ifms_file_names,
    spacecraft_name=sc_name,
    ground_station_names=ground_station_names_per_file,
    frequency_bands=["X-band", "X-band"],
    reception_reference_frequency_band="X-band",
    apply_tropospheric_correction=False,
)