ssapy_toolkit.Coordinates.lunar_position

Functions

get_lunar_rv(t)

Calculate the position and velocity of the Moon at a given time or times.

ssapy_toolkit.Coordinates.lunar_position.get_lunar_rv(t)[source]

Calculate the position and velocity of the Moon at a given time or times.

Parameters: t (Time or array-like): A Time object or an array of time points for which to calculate the position and velocity.

If a single time is passed, the position and velocity are calculated at that time. If multiple times are passed, the position and velocity are calculated for each time.

Returns: tuple: A tuple containing two elements:

  • r (ndarray): The position of the Moon(s) at the given time(s), in kilometers.

  • v (ndarray): The velocity of the Moon(s) at the given time(s), in kilometers per second.

Author: Travis Yeager (yeager7@llnl.gov)