environment_data

This module contains interfaces for loading and querying external data that can be used to define environment models in Tudat. It includes interfaces for SPICE kernels, JPL Horizons, JPL’s Small-Body Database, Space-Track, DISCOS, space-weather data, comet-coma data, DAMIT asteroid shape models, and mission-specific environment products.

The functions and classes in this module retrieve or load data. The conversion of these data into Tudat environment models is handled by the corresponding functions in environment_setup.

Functions

read_dsn_amc_file(file_name)

Read all records of a DSN Advanced Media Calibration (AMC) path delay file, without any quality screening.

get_valid_dsn_amc_zenith_delays(records[, ...])

Retrieve the valid zenith path delays from DSN AMC records.

read_dsn_amc_file(file_name: str) → list[tudatpy.kernel.data_input.environment_data.DsnAmcRecord]

Read all records of a DSN Advanced Media Calibration (AMC) path delay file, without any quality screening. Both 16-column files (e.g. Juno) and 14-column files without wind speed and direction (e.g. Cassini) are accepted, where the columns include the leading ‘P’. For 14-column files, the wind speed and direction are set to NaN.

Parameters:

file_name (str) – Name of AMC file

Returns:

Records in file

Return type:

list[DsnAmcRecord]

get_valid_dsn_amc_zenith_delays(records: list[tudatpy.kernel.data_input.environment_data.DsnAmcRecord], minimum_rejected_cloud_flag: int = 1, reject_on_elevation_flag: bool = True, reject_on_mtp_flag: bool = True, reject_on_surface_flag: bool = True, reject_on_wind_flag: bool = True) → dict[float, numpy.ndarray[numpy.float64[2, 1]]]

Retrieve the valid zenith path delays from DSN AMC records. Records with an invalid wet path delay or bad quality flags are rejected, where the input arguments define part of the rejection criteria. An invalid dry path delay is stored as NaN.

Parameters:
  • records (list[DsnAmcRecord]) – AMC records, from read_dsn_amc_file()

  • minimum_rejected_cloud_flag (int, default = 1) – Cloud flag value at and above which records are rejected (cloud flag 0: liquid water < 20 micrometer, 1: 20-100 micrometer, 2: 100-200 micrometer, 3: > 200 micrometer)

  • reject_on_elevation_flag (bool, default = True) – Boolean denoting whether records with elevation outside the prescribed range are rejected

  • reject_on_mtp_flag (bool, default = True) – Boolean denoting whether records with non-zero Microwave Temperature Profiler (MTP) flag are rejected

  • reject_on_surface_flag (bool, default = True) – Boolean denoting whether records with non-zero surface meteorology flag are rejected

  • reject_on_wind_flag (bool, default = True) – Boolean denoting whether records with non-zero wind flag are rejected

Returns:

Zenith [dry, wet] path delays [m], with UTC time (seconds since J2000) as key, which can be used as input for measured_tropospheric_light_time_correction()

Return type:

dict[float, numpy.ndarray]

Classes

DsnAmcRecord

Single record of a DSN Advanced Media Calibration (AMC) path delay file (see DSN document DORS_002_020501).

class DsnAmcRecord

Bases: pybind11_object

Single record of a DSN Advanced Media Calibration (AMC) path delay file (see DSN document DORS_002_020501).

property algorithm_id

read-only

Identifier of retrieval algorithm (e.g. 005/006: statistical, 200: Bayesian), with leading zeros retained.

property azimuth

read-only

Azimuth of the Advanced Water Vapor Radiometer (AWVR) [deg].

property cloud_flag

read-only

Cloud flag: 0: liquid water < 20 micrometer, 1: 20-100 micrometer, 2: 100-200 micrometer, 3: > 200 micrometer.

property cloud_liquid

read-only

Cloud liquid [micrometer].

property elevation

read-only

Elevation of the AWVR [deg].

property mtp_flag

read-only

Microwave Temperature Profiler (MTP) flag: 0: all MTP observables within acceptable range, 1: MTP observable(s) outside acceptable range.

property path_delay_flag

read-only

Path delay flag: 0: retrieved zenith path delay within acceptable range, 1: retrieved zenith path delay outside acceptable range, 2: elevation outside prescribed range (no retrieval for Bayesian algorithm; retrieval possibly erroneous due to ground pickup for statistical algorithm).

property surface_flag

read-only

Surface meteorology flag: 0: all surface meteorology observables within acceptable range, 1: observable(s) outside acceptable range.

property utc_time

read-only

UTC time, in seconds since J2000.

property wind_direction

read-only

Wind direction [deg] (NaN if not in file).

property wind_flag

read-only

Wind flag: 0: wind observables within acceptable range, 1: wind observable(s) outside acceptable range.

property wind_speed

read-only

Wind speed [mph] (NaN if not in file).

property wvr_flag

read-only

AWVR flag: 0: all AWVR observables within acceptable range, 1: AWVR observable(s) outside acceptable range.

property zenith_dry_delay

read-only

Zenith dry (static) path delay [m] (9.99 m denotes a missing retrieval).

property zenith_wet_delay

read-only

Zenith wet path delay [m] (9.99 m denotes a missing retrieval).