ssapy_toolkit.Coordinates.gcrf_to_lunar

ssapy_toolkit.Coordinates.gcrf_to_lunar(r: ndarray, t: ndarray, v: ndarray = None) ndarray[source]

Convert position and velocity vectors from GCRF to Lunar coordinates.

Parameters: - r (np.ndarray): Position vector in GCRF coordinates (meters). - t (np.ndarray): Time array for conversion. - v (Optional[np.ndarray]): Velocity vector in GCRF coordinates (meters per second). Optional.

Returns: - Position vector in Lunar coordinates if velocity is not provided, or position and velocity in Lunar coordinates.

Author: Travis Yeager (yeager7@llnl.gov)