observations_geometry

Functions

inertial_vector_to_azimuth_elevation(bodies, ...)

Convert an inertial station-to-target vector to local azimuth and elevation at a ground station.

azimuth_elevation_to_inertial_unit_vector(...)

Convert local azimuth and elevation at a ground station to an inertial station-to-target unit vector.

right_ascension_declination_to_azimuth_elevation(...)

Convert an inertial right ascension and declination direction to local azimuth and elevation at a ground station.

azimuth_elevation_to_right_ascension_declination(...)

Convert local azimuth and elevation at a ground station to inertial right ascension and declination.

compute_target_angles_and_range(bodies, ...)

Function to compute the azimuth angle, elevation angle and range at a ground station.

compute_target_angles_and_range_vectors(...)

Function to compute the azimuth angle, elevation angle and range at a ground station.

inertial_vector_to_azimuth_elevation(bodies: tudatpy.kernel.dynamics.environment.SystemOfBodies, station_id: tuple[str, str], time: float, inertial_vector: numpy.ndarray[numpy.float64[3, 1]]) → numpy.ndarray[numpy.float64[2, 1]]

Convert an inertial station-to-target vector to local azimuth and elevation at a ground station.

The supplied vector is rotated to the station’s local topocentric ENU frame at time. This frame is constructed from the station position and the station body’s shape model; \([e,n,u]^T\) are the east, north and up components of the station-to-target vector in this frame. The angular convention is

\[\begin{split}A &= \operatorname{atan2}(e,n)\\ E &= \operatorname{atan2}(u,\sqrt{e^2+n^2})\end{split}\]
Parameters:
  • bodies (SystemOfBodies) – Environment from which the ground station and frame rotations are retrieved. The target direction is supplied by inertial_vector.

  • station_id (tuple[ str, str ]) – Pair (body_name, station_name) identifying the ground station.

  • time (float) – Epoch at which the station frame orientation is evaluated.

  • inertial_vector (numpy.ndarray) – Three-element Cartesian vector from the ground station to the target, expressed in the inertial frame. Its magnitude is ignored.

Returns:

Two-element vector [azimuth, elevation] in radians.

Return type:

numpy.ndarray

azimuth_elevation_to_inertial_unit_vector(bodies: tudatpy.kernel.dynamics.environment.SystemOfBodies, station_id: tuple[str, str], time: float, azimuth_elevation: numpy.ndarray[numpy.float64[2, 1]]) → numpy.ndarray[numpy.float64[3, 1]]

Convert local azimuth and elevation at a ground station to an inertial station-to-target unit vector.

For azimuth \(A\) and elevation \(E\), the local topocentric ENU frame is constructed from the station position and the station body’s shape model, and the station-to-target unit vector in this frame is

\[\hat{\mathbf{u}}_{T} = [\sin A\cos E,\ \cos A\cos E,\ \sin E]^T\]

It is then rotated from the station topocentric frame to the inertial frame.

Parameters:
  • bodies (SystemOfBodies) – Environment from which the ground station and frame rotations are retrieved. The target direction is supplied by azimuth_elevation.

  • station_id (tuple[ str, str ]) – Pair (body_name, station_name) identifying the ground station.

  • time (float) – Epoch at which the station frame orientation is evaluated.

  • azimuth_elevation (numpy.ndarray) – Two-element vector [azimuth, elevation] in radians, defining the local direction from the ground station to the target.

Returns:

Three-element Cartesian unit vector from the ground station to the target, expressed in the inertial frame.

Return type:

numpy.ndarray

right_ascension_declination_to_azimuth_elevation(bodies: tudatpy.kernel.dynamics.environment.SystemOfBodies, station_id: tuple[str, str], time: float, right_ascension_declination: numpy.ndarray[numpy.float64[2, 1]]) → numpy.ndarray[numpy.float64[2, 1]]

Convert an inertial right ascension and declination direction to local azimuth and elevation at a ground station.

For right ascension \(\alpha\) and declination \(\delta\), the inertial station-to-target unit vector is \([\cos\delta\cos\alpha,\ \cos\delta\sin\alpha,\ \sin\delta]^T\). This vector is then passed to inertial_vector_to_azimuth_elevation().

Parameters:
  • bodies (SystemOfBodies) – Environment from which the ground station and frame rotations are retrieved. The target direction is supplied by right_ascension_declination.

  • station_id (tuple[ str, str ]) – Pair (body_name, station_name) identifying the ground station.

  • time (float) – Epoch at which the station frame orientation is evaluated.

  • right_ascension_declination (numpy.ndarray) – Two-element vector [right_ascension, declination] in radians, defining the inertial direction from the ground station to the target.

Returns:

Two-element vector [azimuth, elevation] in radians.

Return type:

numpy.ndarray

azimuth_elevation_to_right_ascension_declination(bodies: tudatpy.kernel.dynamics.environment.SystemOfBodies, station_id: tuple[str, str], time: float, azimuth_elevation: numpy.ndarray[numpy.float64[2, 1]]) → numpy.ndarray[numpy.float64[2, 1]]

Convert local azimuth and elevation at a ground station to inertial right ascension and declination.

The local direction is first converted to an inertial unit vector \(\hat{\mathbf{u}}\) using azimuth_elevation_to_inertial_unit_vector(). The returned angles are \(\alpha=\operatorname{atan2}(\hat{u}_{y},\hat{u}_{x})\) and \(\delta=\operatorname{asin}(\hat{u}_{z})\).

Parameters:
  • bodies (SystemOfBodies) – Environment from which the ground station and frame rotations are retrieved. The target direction is supplied by azimuth_elevation.

  • station_id (tuple[ str, str ]) – Pair (body_name, station_name) identifying the ground station.

  • time (float) – Epoch at which the station frame orientation is evaluated.

  • azimuth_elevation (numpy.ndarray) – Two-element vector [azimuth, elevation] in radians, defining the local direction from the ground station to the target.

Returns:

Two-element vector [right_ascension, declination] in radians.

Return type:

numpy.ndarray

compute_target_angles_and_range(bodies: tudatpy.kernel.dynamics.environment.SystemOfBodies, station_id: tuple[str, str], target_body: str, observation_times: list[float], is_station_transmitting: bool) → dict[float, numpy.ndarray[numpy.float64[m, 1]]]

Function to compute the azimuth angle, elevation angle and range at a ground station.

Function to compute the azimuth angle, elevation angle and range at a ground station. This functions is provided as a function of convenience, to prevent users having to manually define the relevant settings for this often-needed functionality. This function takes an observing station and a target body as input, and provides the observed angles and current range (without correction for aberrations, with correction for light time) as observed at that station

Parameters:
  • bodies (SystemOfBodies) – System of bodies that defines the full physical environment

  • station_id (tuple[ str, str]) – Identifier for the observing station, as a pair of strings: the body name and the station name.

  • target_body (str) – Name of body which is observed by ground station

  • observation_times (list[float]) – List of times at which the ground station observations are to be analyzed

  • is_station_transmitting (bool) – Boolean defining whether the observation times define times at which the station is transmitting to, or receiving from, the ground station. This has an impact on the whether the light-time is computed forward or backward in time from the ground station to the target

Returns:

Dictionary with the required output. Key defines the observation time, the value is an array of size three containing entry 0 - elevation angle, entry 1 - azimuth angle, entry 2 - range

Return type:

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

compute_target_angles_and_range_vectors(bodies: tudatpy.kernel.dynamics.environment.SystemOfBodies, station_id: tuple[str, str], target_body: str, observation_times: list[float], is_station_transmitting: bool) → tuple[list[float], list[numpy.ndarray[numpy.float64[m, 1]]]]

Function to compute the azimuth angle, elevation angle and range at a ground station.

Function to compute the azimuth angle, elevation angle and range at a ground station. This functions is provided as a function of convenience, to prevent users having to manually define the relevant settings for this often-needed functionality. This function takes an observing station and a target body as input, and provides the observed angles and current range (without correction for aberrations, with correction for light time) as observed at that station

Parameters:
  • bodies (SystemOfBodies) – System of bodies that defines the full physical environment

  • station_id (tuple[ str, str]) – Identifier for the observing station, as a pair of strings: the body name and the station name.

  • target_body (str) – Name of body which is observed by ground station

  • observation_times (list[float]) – List of times at which the ground station observations are to be analyzed

  • is_station_transmitting (bool) – Boolean defining whether the observation times define times at which the station is transmitting to, or receiving from, the ground station. This has an impact on the whether the light-time is computed forward or backward in time from the ground station to the target

Returns:

Pair containing the observation times and the corresponding arrays of elevation angle, azimuth angle, and range.

Return type:

tuple[list[float], list[numpy.ndarray]]