ssapy_toolkit.Coordinates.earth_trojan_sim

Functions

inert2rot(x, y, xe, ye[, xs, ys])

Rotate inertial coordinates to a rotated frame defined by the position of Earth.

sim_lonlatrad(x, y, z, xe, ye, ze, xs, ys, zs)

Convert Cartesian coordinates (x, y, z) to geodetic longitude, latitude, and radius, relative to the Sun's position at the given time.

ssapy_toolkit.Coordinates.earth_trojan_sim.inert2rot(x: float, y: float, xe: float, ye: float, xs: float = 0, ys: float = 0) float[source]

Rotate inertial coordinates to a rotated frame defined by the position of Earth.

Parameters: - x (float): The x-coordinate in inertial space. - y (float): The y-coordinate in inertial space. - xe (float): The x-coordinate of Earth’s position. - ye (float): The y-coordinate of Earth’s position. - xs (float, optional): The x-coordinate of the Sun’s position. Defaults to 0. - ys (float, optional): The y-coordinate of the Sun’s position. Defaults to 0.

Returns: - Tuple[float, float]: The rotated x and y coordinates.

Author: Travis Yeager (yeager7@llnl.gov)

ssapy_toolkit.Coordinates.earth_trojan_sim.sim_lonlatrad(x: float, y: float, z: float, xe: float, ye: float, ze: float, xs: float, ys: float, zs: float) float[source]

Convert Cartesian coordinates (x, y, z) to geodetic longitude, latitude, and radius, relative to the Sun’s position at the given time.

Parameters: - x, y, z (float): Cartesian coordinates of the point of interest. - xe, ye, ze (float): Cartesian coordinates of the observer (Earth). - xs, ys, zs (float): Cartesian coordinates of the Sun.

Returns: - float: Longitude, latitude, and radius relative to the Sun in degrees and kilometers.

Author: Travis Yeager (yeager7@llnl.gov)