odf¶
ODF tracking-data loading.
This submodule contains functionality to load tracking data from ODF files. ODF files are binary files produced by the Deep Space Network (DSN) and encode radiometric spacecraft tracking data used for orbit and parameter estimation. The format is described in 820-013, TRK-2-18 Tracking System Interfaces Orbit Data File Interface, Revision E, 2008, JPL/DSN.
The read_odf_data()
function is the main interface for loading the data and converting it to objects
that Tudat can process further; see also tracking_data. All
other functionality in this module is reserved for better understanding what
data is being loaded, and in some cases manipulating it, before it is processed
into Tudat-compatible objects.
- read_odf_data(odf_file_names: list[str], spacecraft_name: str, earth_name: str = 'Earth', verbose_output: bool = True) tuple[list[tudatpy.kernel.data_input.tracking_data.TrackingData], list[tudatpy.kernel.data_input.tracking_data.TrackingSupplementaryData]]¶
Read ODF files and convert them to tracking-data containers.
The reader parses the raw ODF contents, which can also be inspected with
read_raw_odf_file_contents(), and converts the selected tracking records to TudatTrackingDataandTrackingSupplementaryDataobjects using theconvert_raw_odf_file_contents()function.- Parameters:
spacecraft_name (str) – Name assigned to the spacecraft link end (to be used for all files).
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’).
verbose_output (bool, default=True) – Whether reader progress is printed (to be used for all files).
- Returns:
Tracking data objects and supplementary data objects.
- Return type:
Supporting API¶
The functions and classes below expose the raw contents of ODF binary files in
dedicated containers. They are used internally by read_odf_data() and do
not perform the full conversion to Tudat tracking-data objects, but can be used
to inspect the parsed ODF contents and process them further if needed.
- read_raw_odf_file_contents(file_name: str) tudatpy.kernel.data_input.tracking_data.odf.RawOdfFileContents¶
Read an ODF file without converting it to tracking data.
This is a supporting reader for inspecting raw ODF contents. In the typical Tudat workflow, call
read_odf_data()instead, so the file contents are converted to Tudat tracking-data objects.- Parameters:
file_name (str) – Path to the ODF file.
- Returns:
Raw parsed ODF file contents.
- Return type:
- convert_raw_odf_file_contents(raw_odf_contents: list[tudatpy.kernel.data_input.tracking_data.odf.RawOdfFileContents], spacecraft_name: str, earth_name: str, verbose_output: bool = True) tuple[list[tudatpy.kernel.data_input.tracking_data.TrackingData], list[tudatpy.kernel.data_input.tracking_data.TrackingSupplementaryData]]¶
Convert raw ODF file contents to tracking-data containers.
This function converts the raw ODF contents, which can be obtained with
read_raw_odf_file_contents(), to TudatTrackingDataandTrackingSupplementaryDataobjects.- Parameters:
raw_odf_contents (RawOdfFileContents) – Raw parsed ODF file contents.
spacecraft_name (str) – Name assigned to the spacecraft link end (to be used for all files).
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’).
verbose_output (bool, default=True) – Whether reader progress is printed (to be used for all files).
- Returns:
Tracking data objects and supplementary data objects.
- Return type:
- class RawOdfFileContents¶
Bases:
pybind11_objectRaw contents of a parsed ODF file.
- write_to_text_file(self: tudatpy.kernel.data_input.tracking_data.odf.RawOdfFileContents, output_file: str) None¶
Write the raw ODF contents to a text file.
- Parameters:
output_file (str) – Path of the text file to write.
- Return type:
None
- property data_blocks¶
read-only
ODF data blocks.
- Type:
- property ramp_blocks¶
read-only
ODF ramp blocks.
- Type:
- class OdfCommonDataBlock¶
Bases:
pybind11_objectBase class observable-independent ODF data containers
The data section of an ODF is split into blocks (lines), each associated with an observation epoch. The first elements of each block (e.g. observation epoch, value of the observable) are common for all the observable types, but the values in the remaining columns will have different meanings for different types of observations. This class serves as interface to the observable-independent part of an ODF data block. The different classes inheriting from OdfDataSpecificBlock provide interfaces to the observable-specific part of the blocks.
- print_data_block(self: tudatpy.kernel.data_input.tracking_data.odf.OdfCommonDataBlock, output_file: str) None¶
Write the contents of the data block to a text file
The file is created if it does not exist, and it can have, for example, txt extension
- Parameters:
output_file (str) – Contents will be written to the file defined by this path
- class OdfDataBlock¶
Bases:
pybind11_objectContents of a line of the data section of an ODF
- print_data_block(self: tudatpy.kernel.data_input.tracking_data.odf.OdfDataBlock, output_file: str) None¶
Write the contents of the data block to a text file
The file is created if it does not exist, and it can have, for example, txt extension
- Parameters:
output_file (str) – Contents will be written to the file defined by this path
- class OdfDataSpecificBlock¶
Bases:
pybind11_objectBase class observable-dependent ODF data containers
The data section of an ODF is split into blocks (lines), each associated with an observation epoch. The first elements of each block (e.g. observation epoch, value of the observable) are common for all the observable types, but the values in the remaining columns will have different meanings for different types of observations. This base class serves as parent for interfaces to the observable-specific part of an ODF data block. The interface to the common part of the blocks is provided by the OdfCommonDataBlock class.
- class OdfDopplerDataBlock¶
Bases:
OdfDataSpecificBlockContainer for ODF Doppler-specific data
- class OdfRampBlock¶
Bases:
pybind11_objectContents of a line of the ramp section of an ODF
- class OdfDataType¶
Bases:
pybind11_objectPossible data types in orbit section of ODF file
Members:
narrowband_spacecraft_vlbi_doppler_mode
narrowband_spacecraft_vlbi_phase_mode
narrowband_quasar_vlbi_doppler_mode
narrowband_quasar_vlbi_phase_mode
wideband_spacecraft_vlbi
wideband_quasar_vlbi
one_way_doppler
two_way_doppler
three_way_doppler
one_way_total_count_phase
two_way_total_count_phase
three_way_total_count_phase
pra_planetary_operational_discrete_spectrum_range
sra_planetary_operational_discrete_spectrum_range
re_range
azimuth_angle
elevation_angle
hour_angle
declination_angle
x_angle_east
y_angle_east
x_angle_south
y_angle_south