Skip to content

ECEF to LLA #806

Answered by brandon-rhodes
karatemir asked this question in Q&A
Oct 18, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Alas, as Skyfield is basically a library for building and combining vectors in the fixed ICRS reference frame, it does not provide quick conversions between the two different forms of non-ICRS coordinate you are dealing with: an $(x,y,z)$ ITRS vector and the equivalent latitude-longitude-altitude designation for that same ITRS position.

The logic for computing latitude-longitude-altitude, alas, is currently hidden in a method Geoid._compute_latitude() which is currently only for the use of the public Geoid methods—all of which want an ICRS Position as their input, not a vector that’s already rotated into the ITRS.

This limitation is reflected in an asymmetry in Skyfield's public interface…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@karatemir
Comment options

Answer selected by karatemir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants