light_time_corrections¶
This module contains a set of factory functions for setting up the light-time corrections for observation models.
Most functions in this module create objects of type LightTimeCorrectionSettings,
which define settings for a type of light-time correction. The main interface with Tudat is that these objects are used
as input to the observation model functions created in the model_settings module.
When not applying any light-time corrections, a signal is assumed to travel in a straight line (in Euclidean space) with the speed of light \(c\). The light-time corrections defined through this module are used to compute corrections \(\Delta t\) to the light time, such that:
for a signal transmitted from link end \(0\) at \(t_{0}\) and received by link end \(1\) at \(t_{1}\). More details on the link with the observation model, and the manner in which this equation is solved, is given on the user guide .
Functions¶
Function for creating convergence settings for solving the light-time equation. |
|
Function for creating settings for first-order relativistic light-time corrections. |
|
|
Function for creating settings for Moyer, 2000 Eq 8.55 approximated second-order relativistic light-time corrections. |
Function for creating settings for DSN tabulated tropospheric light-time corrections. |
|
Function for creating settings for Saastamoinen tropospheric light-time corrections. |
|
Function for creating settings for DSN tabulated ionospheric light-time corrections. |
|
Function for creating settings for Jakowski VTEC ionospheric light-time corrections. |
|
Function for creating settings for NeQuick-2 path-integrated ionospheric light-time corrections. |
|
Create VMF3 tropospheric light time correction settings. |
|
Create VMF3o (optical) tropospheric light time correction settings. |
|
|
Create a dispersive solar-corona light-time correction from an inverse-power electron density model. |
|
Set VMF/VMF3/VMF3o troposphere (and optional meteo) data in Earth ground stations. |
|
Load IONEX global ionosphere map data and set the resulting ionosphere model on the Earth body. |
- light_time_convergence_settings(iterate_corrections: bool = False, maximum_number_of_iterations: int = 50, absolute_tolerance: float = nan, failure_handling: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeFailureHandling = <LightTimeFailureHandling.accept_without_warning: 0>) tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeConvergenceCriteria¶
Function for creating convergence settings for solving the light-time equation.
Function for creating convergence settings for solving the light-time equation. Computing the light time \(s=t_{R}-t_{T}\) between two receiver \(R\) and transmitter \(T\) requires the iterative solution of the following equation:
\[t_{R} - t_{T} = c\left(|\mathbf{r}_{R}(t_{R}) - \mathbf{r}_{T}(t_{T})| + \Delta s(t_{R}, t_{T}, \mathbf{r}_{R}(t_{R}), \mathbf{r}_{T}(t_{T}))\right)\]where either the reception time \(t_{R}\) or the transmission time \(t_{T}\) is kept fixed (reference link end time). The term \(\Delta s\) contains any deviations in the light-time from straight-line propagation at speed of light (relativistic corrections, media corrections, etc.). The algorithm starts at \(t_{R}=t_{T}\), and uses this to evaluate the right-hand side of the above equation. This leads to a new value of \(t_{R}\) or \(t_{T}\) (depending on which is kept fixed) and the right-hand side is re-evaluated in a new iteration. The input to this function defines the settings for when the iteration will terminate.
- Parameters:
iterate_corrections (bool, default = False) – Boolean denoting whether the terms \(\Delta s\) are recomputed at each iteration or not. If false, the corrections are calculated only on the first iteration. Afterwards, the value is kept fixed until convergence. Once preliminarily converged, the algorithm recomputes \(\Delta s\), and continues the iteration (until proper convergence) while now recomputing \(\Delta s\) each iteration. Setting this input to false is typically safe, and is computationally more efficient.
maximum_number_of_iterations (int, default = 50) – Maximum number of iterations taken by the algorithm. If this number of iterations is reached without convergence (as defined by
absolute_toleranceinput), the behaviour of the algorithm is defined by thefailure_handlinginput.absolute_tolerance (float, default = nan) – Difference in \(t_{R}-t_{T}\) between two consecutive iterations below which the algorithm is considered to be converged. Default value is nan, which means the default value is taken. The default value depends on the time representation used (1 ps for float; 1 fs for Time class)
failure_handling (LightTimeFailureHandling, default = accept_without_warning) – Input defines behaviour when failing to converge within the required number of iterations. NOTE: the default value should be overridden for high-accuracy applications
- Returns:
Instance of the
LightTimeConvergenceCriteriawith the required settings.- Return type:
Examples
# Code Snippet to showcase the use of the light_time_convergence_settings function from tudatpy.estimation.observable_models_setup import light_time_corrections # The light_time_convergence_settings function can be used with default inputs as just: light_time_convergence_settings = light_time_corrections.light_time_convergence_settings() # A LightTimeConvergenceCriteria object is returned print(light_time_convergence_settings) # Users can also specify the following input arguments: # iterate_corrections, maximum_number_of_iterations, absolute_tolerance, failure_handling. # Let's set the failure_handling argument to LightTimeFailureHandling.print_warning_and_accept (default was LightTimeFailureHandling.accept_without_warning) light_time_convergence_settings = light_time_corrections.light_time_convergence_settings( failure_handling = light_time_corrections.LightTimeFailureHandling.print_warning_and_accept ) # Again, a LightTimeConvergenceCriteria object is returned print(light_time_convergence_settings)
- first_order_relativistic_light_time_correction(perturbing_bodies: list[str]) tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Function for creating settings for first-order relativistic light-time corrections.
Function for creating settings for first-order relativistic light-time corrections: These corrections account for the delay in light travel time caused by stationary point masses, calculated up to \(c^{-2}\) according to general relativity (e.g., Moyer, 2000 Eq 8.55). A key consideration in the model is the time at which the states of the perturbing bodies are evaluated. This depends on their involvement in the observation link ends:
Perturbing Body as a Link End: If the perturbing body (e.g., Earth) is directly involved in the observation (e.g., as the location of a transmitter or receiver):
The body’s state is evaluated at the transmission time if it acts as the transmitter.
The body’s state is evaluated at the reception time if it acts as the receiver.
Perturbing Body Not as a Link End: If the perturbing body is not part of the observation link ends, its state is evaluated at the midpoint time between the transmission and reception events.
- Parameters:
perturbing_bodies (List[str]) – A list containing the names of the bodies due to which the light-time correction is to be taken into account.
- Returns:
Instance of the
LightTimeCorrectionSettingsconfigured to include first-order relativistic light-time corrections.- Return type:
Examples
# Code Snippet to showcase the use of the first_order_relativistic_light_time_correction function from tudatpy.estimation.observable_models_setup import light_time_corrections, links # Create Link Ends dictionary link_ends = dict() link_ends[links.receiver] = links.body_origin_link_end_id("Earth") link_ends[links.transmitter] = links.body_origin_link_end_id("Delfi-C3") # Create a Link Definition Object from link_ends dictionary Link_Definition_Object = links.LinkDefinition(link_ends) # The function first_order_relativistic_light_time_correction() requires a list of strings (perturbing body/bodies) as input # and a boolean value for bending (default is True). perturbing_body = ['Earth'] doppler_observation_settings = light_time_corrections.first_order_relativistic_light_time_correction(perturbing_body) # Show that it returns a LightTimeCorrectionSettings object. print(doppler_observation_settings)
- approximated_second_order_relativistic_light_time_correction(perturbing_bodies: list[str]) tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Function for creating settings for Moyer, 2000 Eq 8.55 approximated second-order relativistic light-time corrections.
Function for creating settings for approximated second-order relativistic light-time corrections: These corrections account for the delay in light travel time caused by stationary point masses, calculated up to \(c^{-2}\) according to general relativity ( Moyer, 2000 Eq 8.55; correction term for Sun) and it includes the bending of light due to the perturbing body. A key consideration in the model is the time at which the states of the perturbing bodies are evaluated. This depends on their involvement in the observation link ends:
Perturbing Body as a Link End: If the perturbing body (e.g., Earth) is directly involved in the observation (e.g., as the location of a transmitter or receiver):
The body’s state is evaluated at the transmission time if it acts as the transmitter.
The body’s state is evaluated at the reception time if it acts as the receiver.
Perturbing Body Not as a Link End: If the perturbing body is not part of the observation link ends, its state is evaluated at the midpoint time between the transmission and reception events.
- Parameters:
perturbing_bodies (List[str]) – A list containing the names of the bodies due to which the light-time correction is to be taken into account.
- Returns:
Instance of the
LightTimeCorrectionSettingsconfigured to include approximated second-order relativistic light-time corrections.- Return type:
Examples
# Code Snippet to showcase the use of the first_order_relativistic_light_time_correction function from tudatpy.estimation.observable_models_setup import light_time_corrections, links # Create Link Ends dictionary link_ends = dict() link_ends[links.receiver] = links.body_origin_link_end_id("Earth") link_ends[links.transmitter] = links.body_origin_link_end_id("Delfi-C3") # Create a Link Definition Object from link_ends dictionary Link_Definition_Object = links.LinkDefinition(link_ends) # The function first_order_relativistic_light_time_correction() requires a list of strings (perturbing body/bodies) as input perturbing_body = ['Earth'] doppler_observation_settings = light_time_corrections.approximated_second_order_relativistic_light_time_correction(perturbing_body) # Show that it returns a LightTimeCorrectionSettings object. print(doppler_observation_settings)
- dsn_tabulated_tropospheric_light_time_correction(file_names: list[str], body_with_atmosphere_name: str = 'Earth', mapping_model: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.TroposphericMappingModel = <TroposphericMappingModel.niell: 1>, seasonal_correction_file_name: str = '') tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Function for creating settings for DSN tabulated tropospheric light-time corrections.
The tabulated tropospheric correction settings are created based on files according to the TRK-2-23 Media Calibration Interface document. The tropospheric correction files contain time-series coefficients for the dry and wet tropospheric zenit delay, which are then mapped to the slant range using the specified mapping function. The correction is composed of a seasonal correction and an adjustment to that, based on measured data. The tropospheric corrections are spacecraft-independent.
- Parameters:
file_names (list[str]) – List of paths to the tropospheric correction files. These files should only include the monthly adjustments to the seasonal model as given by the DSN, not the seasonal model.
body_with_atmosphere_name (str, default = "Earth") – Name of the body with the troposphere.
mapping_model (TroposphericMappingModel, default = niell) – Mapping model used to map the zenith delay to the slant range.
seasonal_correction_file_name (str, default = "") – Path to the CSP file containing the seasonal tropospheric correction model. If empty, the DSN default seasonal model from the PDS is used, without the constant terms.
- Returns:
Instance of the
LightTimeCorrectionSettingsconfigured for DSN tabulated tropospheric corrections.- Return type:
- saastamoinen_tropospheric_light_time_correction(body_with_atmosphere_name: str = 'Earth', mapping_model: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.TroposphericMappingModel = <TroposphericMappingModel.niell: 1>, water_vapor_partial_pressure_model: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.WaterVaporPartialPressureModel = <WaterVaporPartialPressureModel.tabulated: 0>) tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Function for creating settings for Saastamoinen tropospheric light-time corrections.
The Saastamoinen tropospheric correction compute the tropospheric zenith delay based on the local meterological conditions at the ground station. This requires the meteorological data to be set in the
GroundStationobject. The dry delay is computed according to Eq. (12,13) in Estefan and Sovers (1994), while the wet delay is computed according to Eq. (18). The zenith delay is then mapped to the slant range using the specified mapping function.- Parameters:
body_with_atmosphere_name (str, default = "Earth") – Name of the body with the troposphere.
mapping_model (TroposphericMappingModel, default = niell) – Mapping model used to map the zenith delay to the slant range.
water_vapor_partial_pressure_model (WaterVaporPartialPressureModel, default = tabulated) – Model used to compute the water vapor partial pressure required for the wet delay computation.
- Returns:
Instance of the
LightTimeCorrectionSettingsconfigured for Saastamoinen tropospheric corrections.- Return type:
- dsn_tabulated_ionospheric_light_time_correction(file_names: list[str], spacecraft_name_per_id: dict[int, str] = {}, quasar_name_per_id: dict[int, str] = {}, reference_frequency: float = 2295000000.0, body_with_atmosphere_name: str = 'Earth') tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Function for creating settings for DSN tabulated ionospheric light-time corrections.
The tabulated ionospheric correction settings are created based on files according to the TRK-2-23 Media Calibration Interface document. The ionospheric correction files contain time-series coefficients for the delay due to charged particles in the ionosphere at the reference frequency. The ionospheric corrections are spacecraft-specific.
- Parameters:
file_names (list[str]) – List of paths to the ionospheric correction files.
spacecraft_name_per_id (dict[int, str], default = {}) – Map with the name of the body associated with each spacecraft ID in the CSP file.
quasar_name_per_id (dict[int, str], default = {}) – Map with the name of the body associated with each quasar ID in the CSP file.
reference_frequency (float, default = 2295e6) – Reference frequency at which the ionospheric correction coefficients are given, in Hz. The correction is scaled to the actual frequency of the signal using the inverse-square law.
body_with_atmosphere_name (str, default = "Earth") – Name of the body with the ionosphere.
- Returns:
Instance of the
LightTimeCorrectionSettingsconfigured for DSN tabulated ionospheric corrections.- Return type:
- jakowski_ionospheric_light_time_correction(ionosphere_height: float = 400000.0, first_order_delay_coefficient: float = 40.3, solar_activity_data_path: str = '/home/docs/.tudat/resource/space_weather/sw19571001.txt', geomagnetic_pole_latitude: float = 1.4119713648634127, geomagnetic_pole_longitude: float = -1.2671090369478832, use_utc_for_local_time_computation: bool = False, body_with_atmosphere_name: str = 'Earth') tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Function for creating settings for Jakowski VTEC ionospheric light-time corrections.
Computes the ionospheric delay using the Jakowski et al. (2011) analytical VTEC model with a Modified Single Layer Model (MSLM) mapping function. The model computes VTEC at the sub-ionospheric point as a function of geomagnetic latitude, local time, and solar activity (F10.7 index), then maps to slant TEC via \(\text{STEC} = \text{VTEC} / \cos(z')\), where \(z'\) is the zenith angle at the ionospheric pierce point.
This correction is suitable for ground-to-GNSS geometries where the receiver is below the ionosphere.
- Parameters:
ionosphere_height (float, default = 400.0e3) – Height of the ionospheric single-layer shell [m].
first_order_delay_coefficient (float, default = 40.3) – Coefficient relating STEC to range delay: \(\Delta\rho = c_1 \cdot \text{STEC} / f^2\) [m 3 /s 2].
solar_activity_data_path (str) – Path to space weather data file containing F10.7 solar radio flux values.
geomagnetic_pole_latitude (float, default = 80.9 deg (in radians)) – Geodetic latitude of the geomagnetic north pole [rad].
geomagnetic_pole_longitude (float, default = -72.6 deg (in radians)) – Geodetic longitude of the geomagnetic north pole [rad].
use_utc_for_local_time_computation (bool, default = False) – If True, use UTC for local time computation instead of TDB.
body_with_atmosphere_name (str, default = "Earth") – Name of the body with the ionosphere.
- Returns:
Instance of the
LightTimeCorrectionSettingsconfigured for Jakowski VTEC ionospheric corrections.- Return type:
- ionex_ionospheric_light_time_correction(body_with_ionosphere_name: str, ionosphere_height: float, first_order_delay_coefficient: float = 40.3) tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Deprecated since version Use:
nequick2_ionospheric_light_time_correction()instead, which provides physically correct path-integrated ionospheric corrections for all geometries including space-based receivers.Function for creating settings for IONEX-based ionospheric light-time corrections using the Modified Single Layer Model (MSLM). This approximation maps VTEC to STEC via \(\text{STEC} = \text{VTEC} / \cos(z')\) and is only valid when the receiver is below the ionosphere and the transmitter is above it. For receivers inside the ionosphere (e.g., ISS at ~420 km), this mapping is geometrically meaningless.
- Parameters:
body_with_ionosphere_name (str) – Name of the body with the ionosphere (e.g.,
"Earth").ionosphere_height (float) – Height of the ionospheric single-layer shell [m]. Typically 450e3 for IONEX maps.
first_order_delay_coefficient (float, default = 40.3) – Coefficient relating STEC to range delay [m 3 /s 2].
- nequick2_ionospheric_light_time_correction(use_ionex_rescaling: bool = True, first_order_delay_coefficient: float = 40.3, quadrature_order: int = 50, ccir_data_path: str = '', solar_activity_data_path: str = '', ionex_rms_bias_tecu: float = 0.0) tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Function for creating settings for NeQuick-2 path-integrated ionospheric light-time corrections.
Computes the ionospheric delay by numerically integrating the NeQuick-2 electron density profile Nava et al. [26], International Telecommunication Union [44] along the transmitter-receiver ray path using Gauss-Legendre quadrature. The delay is given by \(\Delta\tau = c_1 \cdot \text{STEC} / f^2 / c\), where STEC is the path-integrated electron content.
Unlike the MSLM-based corrections (
ionex_ionospheric_light_time_correction(),jakowski_ionospheric_light_time_correction()), this correction works for arbitrary geometries:Ground-to-GNSS (classical)
Ground-to-LEO (low elevation, receiver below ionosphere)
Space-to-space (both endpoints above surface)
Receivers embedded in the ionosphere (e.g., ISS at ~420 km, ACES MWL)
When
use_ionex_rescalingis True and an IONEX ionosphere model has been loaded on the body, the NeQuick-2 F2-layer peak density (NmF2) is rescaled so that the NeQuick-2 vertical TEC column matches the IONEX VTEC at the ionospheric pierce point. This preserves the physical profile shape while anchoring the total electron content to the GNSS-derived IONEX measurement Hernández-Pajares et al. [14]. When set to False, the model runs in free climatology mode using F10.7 only.- Parameters:
body_with_ionosphere_name (str, default = "Earth") – Name of the body with the ionosphere.
use_ionex_rescaling (bool, default = True) – If True, rescale NmF2 so that the NeQuick-2 vertical TEC matches the IONEX VTEC at the ionospheric pierce point. Requires an ionosphere model (from IONEX) to be set on the body via
set_ionosphere_model_from_ionex(). If the body has no ionosphere model set, falls back to free-running NeQuick-2 without error.first_order_delay_coefficient (float, default = 40.3) – Coefficient relating STEC to range delay: \(\Delta\rho = c_1 \cdot \text{STEC} / f^2\) [m 3 /s 2].
quadrature_order (int, default = 50) – Number of Gauss-Legendre quadrature nodes for numerical integration along the ray path. 50 nodes provide sub-0.1% accuracy for smooth ionospheric profiles.
ccir_data_path (str, default = "") – Path to directory containing the NeQuick-2 CCIR coefficient files (
ccir11.ascthroughccir22.asc) and the modified dip latitude grid (modip.asc). If empty, uses the default path (~/.tudat/resource/ionosphere/nequick2/).solar_activity_data_path (str, default = "") – Path to space weather data file containing F10.7 solar radio flux values. If empty, uses the default space weather file.
ionex_rms_bias_tecu (float, default = 0.0) – Additional bias term [TECU] added in quadrature to the IONEX RMS uncertainty. The total 1-sigma VTEC uncertainty is computed as \(\sigma_{\text{total}} = \sqrt{\text{RMS}_{\text{IONEX}}^2 + \text{bias}^2}\). A typical value of 2-5 TECU accounts for systematic errors in the IONEX maps not captured by the formal RMS. Set to 0 to use only the IONEX RMS. The resulting correction uncertainty is stored internally and can be retrieved as a dependent variable after simulation.
- Returns:
Instance of the
LightTimeCorrectionSettingsconfigured for NeQuick-2 path-integrated ionospheric corrections.- Return type:
Examples
from tudatpy.estimation.observable_models_setup import light_time_corrections # Load IONEX maps onto Earth body (required for IONEX-constrained mode) light_time_corrections.set_ionosphere_model_from_ionex( data_files=["path/to/ionex_file.INX"], bodies=bodies ) # Create NeQuick-2 correction with IONEX rescaling (default) nequick2_correction = light_time_corrections.nequick2_ionospheric_light_time_correction() # Or without IONEX rescaling (free-running NeQuick-2 climatology) nequick2_free = light_time_corrections.nequick2_ionospheric_light_time_correction( use_ionex_rescaling=False )
- vmf3_tropospheric_light_time_correction(body_with_atmosphere_name: str = 'Earth', use_gradient_correction: bool = True, tropospheric_mapping_model: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.TroposphericMappingModel = <TroposphericMappingModel.vmf3: 2>) tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Create VMF3 tropospheric light time correction settings.
- vmf3o_tropospheric_light_time_correction(body_with_atmosphere_name: str = 'Earth', use_gradient_correction: bool = True, tropospheric_mapping_model: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.TroposphericMappingModel = <TroposphericMappingModel.vmf3: 2>, observation_wavelength_nm: float = 532.0) tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Create VMF3o (optical) tropospheric light time correction settings.
This model applies VMF3o mapping coefficients and wavelength-dependent scaling to the hydrostatic and wet tropospheric delays. The required station troposphere data must be configured separately.
- Parameters:
body_with_atmosphere_name (str, default = "Earth") – Body carrying the atmosphere and ground station.
use_gradient_correction (bool, default = True) – Whether to include the horizontal tropospheric-gradient contribution.
tropospheric_mapping_model (TroposphericMappingModel, default = vmf3) – Mapping model used to convert zenith delays to slant delays.
observation_wavelength_nm (float, default = 532.0) – Positive observation wavelength in nanometres, used for the VMF3o optical scaling.
- Returns:
Instance of the
LightTimeCorrectionSettingsconfigured for VMF3o optical tropospheric corrections.- Return type:
- inverse_power_series_solar_corona_light_time_correction(coefficients: list[float] = [130000000000000.0, 500000000000.0], positive_exponents: list[float] = [6.0, 2.0], delay_coefficient: float = 40.3, sun_body_name: str = 'Sun') tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.LightTimeCorrectionSettings¶
Create a dispersive solar-corona light-time correction from an inverse-power electron density model.
coefficientsgives density amplitudes in inverse cubic metres andpositive_exponentsgives the corresponding positive powers of distance normalized by the solar radius.delay_coefficientis the plasma delay constant;sun_body_nameidentifies the central star.- Parameters:
coefficients (list[float], default = [1.3e14, 0.5e12]) – Coefficients of the inverse-power series defining solar-corona electron density.
positive_exponents (list[float], default = [6.0, 2.0]) – Positive radial powers for the inverse-power density series, paired with the coefficients.
delay_coefficient (float, default = 40.3) – Coefficient converting the electron-density integral into the light-time correction.
sun_body_name (str, default = "Sun") – Name of the Sun body in the system of bodies.
- Returns:
Settings for the model defined above.
- Return type:
- set_vmf_troposphere_data(data_files: list[str], file_has_meteo: bool, file_has_gradient: bool, bodies: tudatpy.kernel.dynamics.environment.SystemOfBodies, set_troposphere_data: bool = True, set_meteo_data: bool = True, interpolator_settings: tudatpy.kernel.math.interpolators.InterpolatorSettings = tudatpy.math.interpolators.cubic_spline_interpolation(), retrieve_mapping_internally: bool = False) None¶
Set VMF/VMF3/VMF3o troposphere (and optional meteo) data in Earth ground stations.
If
retrieve_mapping_internallyisTrue, station-name matching first attempts direct key matching and then internally maps ILRS station code <-> DOMES identifiers using the default ILRS SINEXSITE/IDregistry.- Parameters:
file_has_meteo (bool) – Whether the files contain meteorological data.
file_has_gradient (bool) – Whether the files contain tropospheric gradient data.
bodies (dynamics.environment.SystemOfBodies) – Bodies containing the Earth ground stations to update.
set_troposphere_data (bool, default = True) – Whether to set the zenith hydrostatic and wet delays in the ground stations.
set_meteo_data (bool, default = True) – Whether to set the meteorological data in the ground stations.
interpolator_settings (math.interpolators.InterpolatorSettings, default = math.interpolators.cubic_spline_interpolation()) – Settings used to interpolate the VMF data.
retrieve_mapping_internally (bool, default = False) – Whether to retrieve the ILRS station-code to DOMES-identifier mapping internally.
- set_ionosphere_model_from_ionex(data_files: list[str], bodies: tudatpy.kernel.dynamics.environment.SystemOfBodies, interpolator_settings: tudatpy.kernel.math.interpolators.InterpolatorSettings = None, station_subset: list[tuple[str, str]] = [], subset_padding_deg: float = 30.0) None¶
Load IONEX global ionosphere map data and set the resulting ionosphere model on the Earth body.
Reads one or more IONEX files (e.g., from IGS, CODE, JPL, ESA, UPC analysis centres), builds a 3D interpolator over [time, latitude, longitude], and attaches the resulting
TabulatedIonosphereModelto the"Earth"body. This model provides VTEC values at arbitrary locations and times, which can then be used by the NeQuick-2 ionospheric light-time correction.When
station_subsetis provided, the IONEX map is spatially cropped to a bounding box around the specified ground stations (plussubset_padding_degon each side). This significantly reduces memory usage and interpolation time, especially for long arcs with high-resolution IONEX products. The station geodetic positions are looked up from thebodiesobject.- Parameters:
data_files (list[str]) – List of paths to IONEX files (
*.INXor*.ionex). Files from any IGS analysis centre (COD, EMR, ESA, IGS, JPL, UPC) and any temporal resolution (15 min to 2 hours) are supported.bodies (
SystemOfBodies) – System of bodies. The ionosphere model will be set on the"Earth"body.interpolator_settings (InterpolatorSettings, default = math.interpolators.cubic_spline_interpolation()) – Settings for the 3D multi-linear interpolator. If not provided, defaults to multi-linear interpolation with hunting algorithm and boundary value extrapolation.
station_subset (list[tuple[str, str]], default = []) – List of
(body_name, station_name)pairs defining the ground stations around which to crop the IONEX grid. When empty (default), the full global grid is loaded. Example:[("Earth", "OPMT"), ("Earth", "WTZR")].subset_padding_deg (float, default = 30.0) – Padding in degrees of latitude and longitude around the bounding box of the station locations.
Examples
# Load full global IONEX grid (default) light_time_corrections.set_ionosphere_model_from_ionex( data_files=["path/to/ionex.INX"], bodies=bodies) # Load only a regional subset around two stations (saves memory) light_time_corrections.set_ionosphere_model_from_ionex( data_files=["path/to/ionex.INX"], bodies=bodies, station_subset=[("Earth", "OPMT"), ("Earth", "WTZR")], subset_padding_deg=30.0)
Enumerations¶
Enumeration of behaviour when failing to converge light-time with required settings. |
|
Enumeration of zenith-to-line-of-sight tropospheric mapping functions. |
|
Enumeration for water vapor partial pressure models. |
- class LightTimeFailureHandling¶
Bases:
pybind11_objectEnumeration of behaviour when failing to converge light-time with required settings.
Examples
# Code snippet to print all available Light Time Failure Handling Types from tudatpy.estimation.observable_models_setup import light_time_corrections num_LightTimeFailureHandling_types = len(light_time_corrections.LightTimeFailureHandling.__members__) print(f'The length of all available Tudatpy Light Time Failure Handling Types is: {num_LightTimeFailureHandling_types}') # Print all available Observation Viability Types using the "name" property for i in range(num_LightTimeFailureHandling_types): print(i, light_time_corrections.LightTimeFailureHandling(i).name)
Members:
accept_without_warning : Accept the last light-time iterate without warning if convergence fails.
print_warning_and_accept : Warn and accept the last light-time iterate if convergence fails.
throw_exception : Raise an exception if light-time convergence fails.
- LightTimeFailureHandling.name -> str
read-only
- class TroposphericMappingModel¶
Bases:
pybind11_objectEnumeration of zenith-to-line-of-sight tropospheric mapping functions.
Members:
simplified_chao : Simplified Chao tropospheric mapping function.
niell : Niell tropospheric mapping function.
vmf3 : Vienna Mapping Function 3.
- TroposphericMappingModel.name -> str
read-only
- class WaterVaporPartialPressureModel¶
Bases:
pybind11_objectEnumeration for water vapor partial pressure models.
Members:
tabulated : Use the water vapor partial pressure values directly from the GroundStation’s water vapor partial pressure data.
bean_and_dutton : Compute the water vapor partial pressure using the Bean and Dutton (1966) model as given in Eq. 16 of Estefan and Sovers (1994), based on the GroundStation’s temperature and relative humidity.
- WaterVaporPartialPressureModel.name -> str
read-only
Classes¶
Base class to define criteria of light time convergence. |
|
Base class to define light time correction settings. |
|
Jakowski vertical total electron content model using solar declination and F10.7 radio flux functions. |
|
VTEC calculator that wraps an IonosphereModel (e.g., from IONEX data). |
- class LightTimeConvergenceCriteria¶
Bases:
pybind11_objectBase class to define criteria of light time convergence.
Base class to define criteria of light time convergence. This class is not used for calculations of corrections, but is used for the purpose of defining the light time convergence criteria. Specific light time convergence criteria must be defined using an object derived from this class. Instances of this class are typically created via the
light_time_convergence_settings()function.Examples
# Code snippet to show the creation of a LightTimeConvergenceCriteria object from tudatpy.estimation.observable_models_setup import light_time_corrections # Create Default Light Time Convergence Settings (no args specified = setting default arguments) light_time_convergence_settings = light_time_corrections.light_time_convergence_settings() # Show that it is an LightTimeConvergenceCriteria object. print(light_time_convergence_settings)
- class LightTimeCorrectionSettings¶
Bases:
pybind11_objectBase class to define light time correction settings.
Base class to define light time correction settings. This class is not used for calculations of corrections, but is used for the purpose of defining the light time correction properties. Specific light time correction settings must be defined using an object derived from this class.
Instances of this class are typically created via the
first_order_relativistic_light_time_correction()functionExamples
# Code snippet to show the creation of a LightTimeCorrectionSettings object from tudatpy.estimation.observable_models_setup import light_time_corrections, links # Create Link Ends dictionary link_ends = dict() link_ends[links.receiver] = links.body_origin_link_end_id("Earth") link_ends[links.transmitter] = links.body_origin_link_end_id("Delfi-C3") # Create a Link Definition Object from link_ends dictionary Link_Definition_Object = links.LinkDefinition(link_ends) # Case 1: perturbing body (Earth) involved in the observations # In this case, Earth is a receiver, so the body's state will be evaluated at the reception time. perturbing_body = ['Earth'] doppler_observation_settings = light_time_corrections.first_order_relativistic_light_time_correction(perturbing_body) # Show that it is a LightTimeCorrectionSettings object. print(doppler_observation_settings) # Case 2: perturbing body (Sun) not involved in the observations # In this case, the body's state will be evaluated at the midpoint time between the transmission and reception events. perturbing_body = ['Sun'] # Use: light_time_corrections.first_order_relativistic_light_time_correction to create a LightTimeCorrectionSettings object # Note: first_order_relativistic_light_time_correction only requires the perturbing list of bodies to be passed as arguments doppler_observation_settings = light_time_corrections.first_order_relativistic_light_time_correction(perturbing_body) # Show that it is an LightTimeCorrectionSettings object. print(doppler_observation_settings.transmitter_proper_time_rate_settings) print(dir(doppler_observation_settings))
- class JakowskiVtecCalculator¶
Bases:
VtecCalculatorJakowski vertical total electron content model using solar declination and F10.7 radio flux functions.
- __init__(self: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.JakowskiVtecCalculator, sun_declination_function: Callable[[float], float], f10p7_function: Callable[[float], float], use_utc_time_for_local_time: bool = False) None¶
Create a Jakowski VTEC model from epoch-dependent solar declination and F10.7 functions, optionally using UTC for local time.
- Parameters:
sun_declination_function (Callable[[float], float]) – Function returning the Sun’s declination, in radians, from epoch in seconds since J2000.
f10p7_function (Callable[[float], float]) – Function returning the 10.7 cm solar flux, in solar flux units, from epoch in seconds since J2000.
use_utc_time_for_local_time (bool, default = False) – Whether to interpret the epoch as UTC when computing local time.
- calculate_vtec(self: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.JakowskiVtecCalculator, time: float, sub_ionospheric_point: numpy.ndarray[numpy.float64[3, 1]]) float¶
Evaluate vertical total electron content at
timeandsub_ionospheric_point.The epoch is in TDB seconds since J2000 and the point contains geodetic altitude in metres, latitude in radians and longitude in radians. Returns vertical total electron content in electrons per square metre.
- Parameters:
time (float) – Epoch at which to evaluate the model, in seconds since J2000.
sub_ionospheric_point (numpy.ndarray[numpy.float64[3, 1]]) – Geodetic position of the sub-ionospheric point: altitude in metres, latitude and longitude in radians.
- Returns:
Vertical total electron content at the sub-ionospheric point, in electrons per square metre.
- Return type:
- class GlobalIonosphereModelVtecCalculator¶
Bases:
VtecCalculatorVTEC calculator that wraps an IonosphereModel (e.g., from IONEX data).
Computes the vertical total electron content at a given sub-ionospheric point by querying the underlying ionosphere model. This is used internally by the IONEX ionospheric light-time correction, but can also be used directly to sample VTEC on a grid for visualization (e.g., global VTEC maps).
The sub-ionospheric point is specified as a geodetic position vector
[altitude_m, latitude_rad, longitude_rad].Examples
from tudatpy.estimation.observable_models_setup import light_time_corrections ionosphere_model = bodies.get("Earth").get_ionosphere_model() vtec_calc = light_time_corrections.GlobalIonosphereModelVtecCalculator(ionosphere_model) # Sample VTEC at 450 km, 45 deg N, 15 deg E import numpy as np geodetic = np.array([450e3, np.deg2rad(45.0), np.deg2rad(15.0)]) vtec = vtec_calc.calculate_vtec(epoch_tdb, geodetic) # returns VTEC in el/m^2
- __init__(self: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.GlobalIonosphereModelVtecCalculator, ionosphere_model: tudatpy.kernel.dynamics.environment.IonosphereModel) None¶
Construct a VTEC calculator from an ionosphere model.
- Parameters:
ionosphere_model (IonosphereModel) – The ionosphere model to wrap (e.g., from
bodies.get("Earth").get_ionosphere_model()).
- calculate_vtec(self: tudatpy.kernel.estimation.observable_models_setup.light_time_corrections.GlobalIonosphereModelVtecCalculator, time: float, sub_ionospheric_point: numpy.ndarray[numpy.float64[3, 1]]) float¶
Calculate the vertical total electron content at a sub-ionospheric point.
- Parameters:
time (float) – Time [seconds since J2000 TDB].
sub_ionospheric_point (numpy.ndarray) – Geodetic position as [altitude_m, latitude_rad, longitude_rad].
- Returns:
Vertical TEC in electrons/m^2 (multiply by 1e-16 to convert to TECU).
- Return type: