libera_utils.geolocation.cartesian_to_planetographic#
- libera_utils.geolocation.cartesian_to_planetographic(cartesian_coords: ndarray, degrees: bool = True)#
Convert cartesian coordinates in the ITRF93 frame to planetographic latitude and longitude. Longitude runs 0-360 such that longitude appears to increase as the planet rotates when viewed by an observer and latitude is calculated from a surface normal vector rather than a line through the planet center. See https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/Tutorials/pdf/individual_docs/17_frames_and_coordinate_systems.pdf for reference.
- Parameters:
cartesian_coords (numpy.ndarray) – Rectangular coordinates in ITRF93 frame.
degrees (bool) – Default true. If False, returns angles in radians.
- Returns:
Each coordinate is returned as (longitude, latitude, altitude).
- Return type: