radar_utilities¶
Radar tracking data: canonical table and conversion to Tudat tracking data.
This submodule defines the canonical radar table shared by the MPC and JPL readers. It provides conversion, filtering and validation functions, together with the supplementary transmitter-frequency data needed by Tudat’s radar observation models.
Conversion¶
- radar_data_from_raw(raw: pandas.DataFrame, source: str) pandas.DataFrame[source]¶
Convert delay and Doppler-shift measurements to the canonical radar table.
- Parameters:
raw (pandas.DataFrame) – Columns
target_body,epoch_seconds_UTC,transmitter,receiver,target_point,transmitter_frequency_hz[Hz],delay_us,delay_sigma_us[us],doppler_hz, anddoppler_sigma_hz[Hz]. A row may contain a delay, a Doppler shift, or both; absent values are NaN.source (str) – Data source label, for example
"MPC"or"JPL".
- Returns:
Canonical radar table with one row per delay or Doppler measurement.
- Return type:
- radar_data_from_table(table) pandas.DataFrame[source]¶
Return the radar data stored in a parsed MPC 80-column table.
- Parameters:
table (astropy.table.Table) – Table returned by an MPC 80-column parser.
- Returns:
Canonical radar table stored under
RADAR_TABLE_META_KEY, or an empty canonical radar table if the metadata contain no radar data.- Return type:
- radar_data_to_tracking_data(table: pandas.DataFrame, station_body: str = 'Earth', target_point: str | None = 'C')[source]¶
Convert a canonical radar table to Tudat tracking and supplementary data.
- Parameters:
table (pandas.DataFrame) – Canonical radar table.
station_body (str, default "Earth") – Body on which the transmitting and receiving stations are defined.
target_point (str | None, default "C") – Bounce point to convert. None converts all rows.
- Returns:
One TrackingData object per target, transmitter, receiver, observable and frequency band, plus the transmitter-frequency histories and passive- reflector identifiers used by Doppler.
- Return type:
Notes
Radar delays are measured with station clocks. When computing residuals for these data, create the range observation models with
model_settings.n_way_range(..., time_scale_for_observable=time_representation.utc_scale). Importmodel_settingsfrom the publictudatpy.estimation.observable_models_setupmodule. With the default (TDB), ranges are biased by about 1.5e-8 times the round-trip light time (roughly 0.5 km for a target at 0.1 au).
Filtering and validation¶
- empty_radar_table() pandas.DataFrame[source]¶
Return an empty canonical radar table.
- Returns:
Empty table with the columns listed in
RADAR_COLUMNS.- Return type:
- validate_radar_data(table: pandas.DataFrame) pandas.DataFrame[source]¶
Check a canonical radar table and return it with numeric columns as floats.
- Parameters:
table (pandas.DataFrame) – Radar table to validate. It must contain every column listed in
RADAR_COLUMNS.- Returns:
Validated table with a consecutive integer index and numeric columns converted to
float.- Return type:
- Raises:
ValueError – If columns are missing, an observable type is unknown, a sigma is not positive, or a Doppler row has no transmitter frequency.
- filter_radar_data(table: pandas.DataFrame, *, epoch_start=None, epoch_end=None, target_body=None, target_point=None, observable_type=None, station_ids=None, exclude_station_ids=None) pandas.DataFrame[source]¶
Filter a canonical radar table.
- Parameters:
table (pandas.DataFrame) – Canonical radar table to filter.
epoch_start (float | DateTime | Time | datetime.datetime | None, default None) – Inclusive lower epoch bound. Numeric values are UTC seconds since J2000.
epoch_end (float | DateTime | Time | datetime.datetime | None, default None) – Inclusive upper epoch bound. Numeric values are UTC seconds since J2000.
target_body (str | iterable[str] | None, default None) – Target body name or names to retain.
target_point (str | iterable[str] | None, default None) – Radar bounce-point code or codes to retain.
observable_type (str | iterable[str] | None, default None) – Tudat observable type or types to retain.
station_ids (iterable[str | int] | None, default None) – Retain rows that use one of these transmitters or receivers.
exclude_station_ids (iterable[str | int] | None, default None) – Remove rows that use one of these transmitters or receivers.
- Returns:
Filtered canonical radar table with a consecutive integer index.
- Return type:
Notes
Bare numeric station codes are padded to three characters following the MPC convention.