ECEF to LLA #806
-
I was trying to see whether I can jump between ECEF and LLA and although I was able to; I feel like my solution is not very clean:
which prints:
Is there a more straightforward way to do this? I feel like Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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 The logic for computing latitude-longitude-altitude, alas, is currently hidden in a method This limitation is reflected in an asymmetry in Skyfield's public interface: if you create an ITRS position by supplying a lat-lon and getting back a So my guess is that we should supplement It almost half feels like they could have been the same class, with two different constructors, one taking Or maybe I'll weigh the options and maybe try writing some code later this month or next, and see which feels the most natural. |
Beta Was this translation helpful? Give feedback.
-
I was looking for the same feature and came up with this for now:
|
Beta Was this translation helpful? Give feedback.
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 publicGeoid
methods—all of which want an ICRSPosition
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…