tracking_data

This module contains the common containers used by the individual tracking-data readers in the submodules below. Those readers load file- or service-specific tracking data into TrackingData objects, optionally with TrackingSupplementaryData objects containing auxiliary information such as station frequency ramps or camera settings, as well as identifiers for passive radar reflectors. The tracking data can then be converted to an ObservationCollection with create_observation_collection_from_tracking_data(). Supplementary data that updates bodies, ground stations, or related environment objects is applied with set_tracking_supplementary_data_in_bodies().

For more information on the tracking data architecture, see the user guide on real tracking data.

Tracking-data readers and containers.

This module exposes Tudat tracking-data containers together with readers and helpers for radiometric, optical (including space-based), radar (MPC and JPL), SLR, TNF/TRK-2-34, ODF, ATDF/TRK-2-25, IFMS, Fdets, PSF, SUM/LMK, and generic tracking text-file inputs.

Tracking data containers

These classes hold tracking data after it has been read from a source, but before it is used in estimation. TrackingData stores the observations themselves, while TrackingSupplementaryData stores additional data from the same source that must be applied to the simulation environment.

TrackingData

Container for source-loaded tracking observations from files and external sources.

TrackingSupplementaryData

Container for tracking supplementary data.

class TrackingData

Bases: pybind11_object

Container for source-loaded tracking observations from files and external sources. These objects are converted to observation collections by create_observation_collection_from_tracking_data().

add_double_ancillary_setting(self: tudatpy.kernel.data_input.tracking_data.TrackingData, ancillary_settings_type: str, ancillary_settings_value: float) → None

Add a floating-point ancillary setting.

Ancillary settings present in supported tracking-data files are loaded automatically by the readers. This function is intended only to override or extend those settings manually, which is not part of the typical data-loading workflow. See ancillary_settings for how ancillary settings are used by observation models.

Parameters:
  • ancillary_settings_type (str) – Ancillary setting identifier.

  • ancillary_settings_value (float) – Ancillary setting value.

Return type:

None

add_double_vector_ancillary_setting(self: tudatpy.kernel.data_input.tracking_data.TrackingData, ancillary_settings_type: str, ancillary_settings_value: list[float]) → None

Add a floating-point-vector ancillary setting.

Ancillary settings present in supported tracking-data files are loaded automatically by the readers. This function is intended only to override or extend those settings manually, which is not part of the typical data-loading workflow. See ancillary_settings for how ancillary settings are used by observation models.

Parameters:
  • ancillary_settings_type (str) – Ancillary setting identifier.

  • ancillary_settings_value (list[float]) – Ancillary setting values.

Return type:

None

add_observation_metadata(self: tudatpy.kernel.data_input.tracking_data.TrackingData, key: str, values: list[str]) → None

Attach one string per observation. Values remain aligned when observations are removed; they are not interpreted as simulation ancillary settings.

add_string_ancillary_setting(self: tudatpy.kernel.data_input.tracking_data.TrackingData, ancillary_settings_type: str, ancillary_settings_value: str) → None

Add a string ancillary setting.

Parameters:
  • ancillary_settings_type (str) – Ancillary setting identifier.

  • ancillary_settings_value (str) – Ancillary setting value.

Return type:

None

add_string_vector_ancillary_setting(self: tudatpy.kernel.data_input.tracking_data.TrackingData, ancillary_settings_type: str, ancillary_settings_value: list[str]) → None

Add a string-vector ancillary setting.

Parameters:
  • ancillary_settings_type (str) – Ancillary setting identifier.

  • ancillary_settings_value (list[str]) – Ancillary setting values.

Return type:

None

get_ancillary_settings_double(self: tudatpy.kernel.data_input.tracking_data.TrackingData) → dict[str, float]

Return all floating-point ancillary settings, keyed by setting identifier.

Returns:

Ancillary setting identifiers and their values.

Return type:

dict[str, float]

get_ancillary_settings_double_vector(self: tudatpy.kernel.data_input.tracking_data.TrackingData) → dict[str, list[float]]

Return all floating-point-vector ancillary settings, keyed by setting identifier.

Returns:

Ancillary setting identifiers and their values.

Return type:

dict[str, list[float]]

get_ancillary_settings_string_vector(self: tudatpy.kernel.data_input.tracking_data.TrackingData) → dict[str, list[str]]

Return all string-vector ancillary settings, keyed by setting identifier.

Returns:

Ancillary setting identifiers and their values.

Return type:

dict[str, list[str]]

get_concatenated_observation_weights(self: tudatpy.kernel.data_input.tracking_data.TrackingData) → numpy.ndarray[numpy.float64[m, 1]]

Return concatenated observation weights.

Returns:

Concatenated observation weights.

Return type:

list[float]

get_observation_corrections(self: tudatpy.kernel.data_input.tracking_data.TrackingData) → list[numpy.ndarray[numpy.float64[m, 1]]]

Return per-observation corrections.

Returns:

Observation correction vectors.

Return type:

list

get_observation_weights(self: tudatpy.kernel.data_input.tracking_data.TrackingData) → list[numpy.ndarray[numpy.float64[m, 1]]]

Return per-observation weights.

Returns:

Observation weights.

Return type:

list

remove_single_observation_entry(self: tudatpy.kernel.data_input.tracking_data.TrackingData, index: int) → None

Remove one observation entry.

Parameters:

index (int) – Observation index to remove.

Return type:

None

reset_single_observation_correction(self: tudatpy.kernel.data_input.tracking_data.TrackingData, index: int, observation_correction: numpy.ndarray[numpy.float64[m, 1]]) → None

Reset one observation correction.

Parameters:
  • index (int) – Observation index.

  • observation_correction (numpy.ndarray) – Replacement observation correction vector.

Return type:

None

reset_single_observation_weight(self: tudatpy.kernel.data_input.tracking_data.TrackingData, index: int, observation_weight: numpy.ndarray[numpy.float64[m, 1]]) → None

Reset one observation weight.

Parameters:
  • index (int) – Observation index.

  • observation_weight (float) – Replacement observation weight.

Return type:

None

set_observation_corrections(self: tudatpy.kernel.data_input.tracking_data.TrackingData, observation_corrections: list[numpy.ndarray[numpy.float64[m, 1]]]) → None

Set per-observation corrections.

Parameters:

observation_corrections (list) – Observation correction vectors.

Return type:

None

set_observation_weights(self: tudatpy.kernel.data_input.tracking_data.TrackingData, observation_weights: list[numpy.ndarray[numpy.float64[m, 1]]]) → None

Set per-observation weights.

Parameters:

observation_weights (list) – Observation weights.

Return type:

None

property epochs

read-only

Observation epochs.

Type:

list

read-only

Link-end definition associated with the observations.

Type:

list

property observable_type

read-only

Observable type represented by this data set.

Type:

str

property observations

read-only

Observation vectors.

Type:

list

read-only

Reference link end for the observation epochs.

Type:

str

property time_scale

read-only

Time scale of the observation epochs.

Type:

str

property weighing_scheme

read-only

Name of the weighing scheme assigned to the observations.

Type:

str

class TrackingSupplementaryData

Bases: pybind11_object

Container for tracking supplementary data.

These objects store auxiliary information loaded from tracking data files and are applied to a system of bodies by set_tracking_supplementary_data_in_bodies().

Parameters:
  • body_name (str) – Name of the body to which the data apply.

  • reference_point_name (str) – Name of the reference point on the body, or an empty string for body-level data.

set_frequency_supplementary_data(self: tudatpy.kernel.data_input.tracking_data.TrackingSupplementaryData, frequency_supplementary_data: list[tudatpy.kernel.data_input.tracking_data.FrequencySupplementaryData]) → None

Set frequency supplementary data.

Parameters:

frequency_supplementary_data (list[FrequencySupplementaryData]) – Frequency supplementary data objects.

Return type:

None

property body_name

Body name.

Type:

str

property frequency_supplementary_data

Frequency supplementary data objects.

Type:

list[FrequencySupplementaryData]

property instrument_supplementary_data

Instrument supplementary data objects.

Type:

list[InstrumentSupplementaryData]

property is_passive_radar_reflector

Whether the named body is a passive radar reflector. Applying this supplementary data sets its turnaround ratio to one for every frequency-band pair.

Type:

bool

property reference_point_name

Reference point name.

Type:

str

property reference_point_supplementary_data

Body-fixed position of the reference point, or None if not provided.

Type:

ReferencePointSupplementaryData | None

property rotational_state_supplementary_data

Rotational-state supplementary data.

Type:

RotationalStateSupplementaryData

property translational_state_supplementary_data

Translational-state supplementary data.

Type:

TranslationalStateSupplementaryData

TrackingSupplementaryData constituent classes

The classes in this section store the individual categories of supplementary data that may be attached to a TrackingSupplementaryData object. They are normally created by the tracking-data readers, but can also be inspected before the supplementary data is applied to the bodies.

FrequencySupplementaryData

Base class for frequency supplementary data.

FrequencyRamp

Container for one ground-station transmission-frequency ramp.

RampedFrequencySupplementaryData

Container for ramped-frequency supplementary tracking data.

PiecewiseConstantFrequencySupplementaryData

Container for piecewise-constant frequency supplementary data.

InstrumentSupplementaryData

Base class for instrument supplementary data.

CameraInstrumentSupplementaryData

Container for camera instrument supplementary data.

CameraCalibration

Calibration of a camera, at a given time (see CameraInstrumentSupplementaryData.get_calibration()).

TranslationalStateSupplementaryData

Container for translational-state supplementary data.

RotationalStateSupplementaryData

Container for rotational-state supplementary data.

ReferencePointSupplementaryData

Container for the position of a reference point fixed to a body, such as a ground station or a surface landmark.

class FrequencySupplementaryData

Bases: pybind11_object

Base class for frequency supplementary data.

Derived classes store station transmission-frequency information. When applied with set_tracking_supplementary_data_in_bodies(), this data is used to set frequency histories on the associated GroundStation, or on the associated body’s vehicle systems if no reference point is specified. Ground-station creation is described in ground_station and by GroundStationSettings; vehicle-system setup is described in vehicle_systems.

class FrequencyRamp

Bases: pybind11_object

Container for one ground-station transmission-frequency ramp.

Frequency ramps are stored in RampedFrequencySupplementaryData and are applied to the associated GroundStation, or to the associated body’s vehicle systems if no reference point is specified. See ground_station and vehicle_systems for the corresponding environment models.

property end_time

Ramp end time, preserving extended epoch precision. Float inputs are accepted.

Type:

tudatpy.astro.time_representation.Time

property frequency_rate

Ramp frequency rate.

Type:

float

property start_frequency

Ramp start frequency.

Type:

float

property start_time

Ramp start time, preserving extended epoch precision. Float inputs are accepted.

Type:

tudatpy.astro.time_representation.Time

class RampedFrequencySupplementaryData

Bases: FrequencySupplementaryData

Container for ramped-frequency supplementary tracking data.

This class stores piecewise-linear transmission-frequency ramps. When applied with set_tracking_supplementary_data_in_bodies(), the ramps are set on the associated GroundStation, or on the associated body’s vehicle systems if no reference point is specified. See ground_station, vehicle_systems, and GroundStationSettings for the environment model to which this data is attached.

add_frequency_ramp(self: tudatpy.kernel.data_input.tracking_data.RampedFrequencySupplementaryData, start_time: tudatpy.kernel.astro.time_representation.Time, end_time: tudatpy.kernel.astro.time_representation.Time, start_frequency: float, frequency_rate: float) → None

Add one frequency ramp.

Parameters:
Return type:

None

property frequency_ramps

read-only

Independent copies of the frequency-ramp records. Appending ramps to the container does not invalidate previously retrieved records, and editing a retrieved record does not change the container.

Type:

list[FrequencyRamp]

class PiecewiseConstantFrequencySupplementaryData

Bases: FrequencySupplementaryData

Container for piecewise-constant frequency supplementary data.

This class stores a transmission-frequency history that is constant between tabulated epochs. When applied with set_tracking_supplementary_data_in_bodies(), the history is set on the associated GroundStation, or on the associated body’s vehicle systems if no reference point is specified. Each entry takes effect at its epoch and is installed as a ramp with zero rate. The existing ramp calculator holds the first and last frequencies outside the tabulated epochs. Later entries replace earlier entries at the same epoch when histories or existing ramp tables are merged. See ground_station, vehicle_systems, and GroundStationSettings for the environment model to which this data is attached.

set_frequency(self: tudatpy.kernel.data_input.tracking_data.PiecewiseConstantFrequencySupplementaryData, time: float, frequency: float) → None

Set one piecewise-constant frequency entry.

Parameters:
  • time (float) – Time at which the frequency applies.

  • frequency (float) – Frequency value.

Return type:

None

property frequency_history

read-only

Frequency history indexed by time.

Type:

dict[float, float]

class InstrumentSupplementaryData

Bases: pybind11_object

Base class for instrument supplementary data.

Derived classes store instrument information that is converted to environment-system models when applied to the bodies. For camera data, this creates camera settings for the associated body; see CameraSettings and pinhole_camera().

property instrument_supplementary_data_type

read-only

Type of instrument supplementary data.

Type:

str

class CameraInstrumentSupplementaryData

Bases: InstrumentSupplementaryData

Container for camera instrument supplementary data.

This class stores camera calibration, mounting and optional orientation history. When applied with set_tracking_supplementary_data_in_bodies(), it is converted to camera data for the associated body. See CameraSettings and pinhole_camera() for the corresponding environment setup interface.

get_calibration(self: tudatpy.kernel.data_input.tracking_data.CameraInstrumentSupplementaryData, time: float = nan) → tudatpy.kernel.data_input.tracking_data.CameraCalibration

Function to get the calibration of the camera at a given time.

Returns the constant calibration of the camera, or, for a camera whose calibration changes between pictures (such as one created from SUM files), that of the picture closest in time.

Parameters:

time (float, default=nan) – Time, in UTC seconds since J2000 (the time scale of rotation_from_inertial_to_camera_frame_history). Only required when the calibration changes between pictures.

Returns:

Calibration of the camera at the given time.

Return type:

CameraCalibration

property body_fixed_position

Position of the camera in the body-fixed frame of the body that carries it [m]. It is used when the camera is created from this supplementary data. Defaults to zero.

Type:

numpy.ndarray[numpy.float64[3, 1]]

property camera_id

read-only

Camera identifier.

Type:

str

property distortion_coefficients

read-only

Camera distortion coefficients.

Type:

numpy.ndarray

property mounting_offsets

read-only

Camera mounting offsets.

Type:

numpy.ndarray

property pointing_reference_body_name

Body whose body-fixed frame the camera rotation history starts from. An empty string means the inertial frame.

Type:

str

property pointing_uncertainty_history

A-priori uncertainty of the camera pointing about the three camera axes [rad], indexed by the picture times of the rotation history (in UTC seconds since J2000). Empty when the source gives no value.

Type:

dict[float, numpy.ndarray[numpy.float64[3, 1]]]

property rotation_from_inertial_to_camera_frame_history

read-only

Camera-frame rotation history indexed by picture time, in UTC seconds since J2000 (as in the source files; the cameras created from this data use TDB instead). The rotations start from the inertial frame, or from the body-fixed frame of pointing_reference_body_name when that is set.

Type:

dict[float, object]

class CameraCalibration

Bases: pybind11_object

Calibration of a camera, at a given time (see CameraInstrumentSupplementaryData.get_calibration()).

property field_of_view_bounds

read-only

Field-of-view bounds.

property focal_length

read-only

Camera focal length.

property k_matrix

read-only

Camera K matrix.

property principal_point

read-only

Camera principal point.

class TranslationalStateSupplementaryData

Bases: pybind11_object

Container for translational-state supplementary data.

This class stores a tabulated Cartesian state history. When applied with set_tracking_supplementary_data_in_bodies(), the data is converted to a tabulated ephemeris for the associated body. Translational-state supplementary data is not applied to a reference point. See TabulatedEphemerisSettings and tabulated() for the corresponding environment setup interface.

property frame_orientation

read-only

Orientation of the translational-state frame.

Type:

str

property frame_origin

read-only

Origin of the translational-state frame.

Type:

str

property is_velocity_defined

read-only

Boolean that defines whether velocity entries are defined, if not they are computed through finite differences when this object is processed to update the environment.

Type:

bool

property state_history

read-only

Translational state history indexed by time.

Type:

dict[float, numpy.ndarray]

property time_scale

read-only

Time scale of the tabulated state-history epochs.

Type:

str

class RotationalStateSupplementaryData

Bases: pybind11_object

Container for rotational-state supplementary data.

This class stores a tabulated rotational state history. When applied with set_tracking_supplementary_data_in_bodies(), the data is converted to a rotational ephemeris for the associated body. Rotational-state supplementary data is not applied to a reference point. See RotationModelSettings and custom_rotation_model() for the corresponding environment setup interface.

property base_frame_orientation

read-only

Base frame of the rotational state.

Type:

str

property is_angular_velocity_defined

read-only

Whether angular-velocity entries are defined (if not, they are currently also not computed when processing this object to update the environment).

Type:

bool

property rotational_state_history

read-only

Rotational state history indexed by time (as quaternion and body-fixed angular velocity).

Type:

dict[float, numpy.ndarray]

class ReferencePointSupplementaryData

Bases: pybind11_object

Container for the position of a reference point fixed to a body, such as a ground station or a surface landmark.

When applied with set_tracking_supplementary_data_in_bodies(), a ground station with this position is created on the associated body, named after the reference point. If the ground station already exists, its position must match.

property body_fixed_position

read-only

Cartesian position of the reference point in the body-fixed frame [m].

Type:

numpy.ndarray[numpy.float64[3, 1]]