gcrf_to_lat_lon
- ssapy.utils.gcrf_to_lat_lon(r, t)[source][source]
Converts a position vector in the GCRF (Geocentric Celestial Reference Frame) to latitude, longitude, and height coordinates on Earth.
Parameters:
r (array-like): The position vector in GCRF coordinates (x, y, z) in meters. t (datetime or float): The time associated with the position vector.
This can be a datetime object or a timestamp in seconds.
Returns:
- tuple: A tuple containing:
lon (float): Longitude in degrees (East-positive).
lat (float): Latitude in degrees (North-positive).
height (float): Height above the Earth’s surface in meters.
Note:
This function relies on the groundTrack function from the .compute module to perform the conversion.