iausathub / satchecker

IAU CPS SatHub tool for satellite position prediction
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Verify if ecef_to_enu is correct #81

Open github-actions[bot] opened 2 months ago

github-actions[bot] commented 2 months ago

The results of this function in combination with the other coordinate system updates

for SGP4 give results similar to, but not identical to, the Skyfield results, so each

new conversion needs to be individually verified

https://github.com/iausathub/satchecker/blob/c5a9a3b0fbe274986a361d37c20d86114d8fddba/src/api/utils/coordinate_systems.py#L48


    return r_ecef

# TODO: Verify if ecef_to_enu is correct
# The results of this function in combination with the other coordinate system updates
# for SGP4 give results similar to, but not identical to, the Skyfield results, so each
# new conversion needs to be individually verified
def ecef_to_enu(r_ecef: list[float], lat: float, lon: float) -> np.ndarray:
    """
    Convert ECEF (Earth-Centered, Earth-Fixed) coordinates to ENU (East, North, Up)