Document how to convert coordinate from ECI to LLA
See original GitHub issueI’ve been reading over the documentation and I can’t quite figure out how to leverage skyfield to convert a coordinate from earth-centered inertial (ECI, given as x, y, z) to LLA (lat, long, altitude). Consider the following example
from datetime import datetime, timedelta
obs_time = datetime(2000, 1, 1) + timedelta(seconds=240) # observe at 2000-01-01 00:04:00
# Given x, y, z coordinates in ECI [meters]
eci = (2183457.758387, 1924098.065987, 5898755.881731)
# What I would like to do
lat, lon, alt = eci_to_lla(eci, obs_time)
# expected output should be somewhere over eastern europe
# lat = 63.7398
# lon = 40.3853
# alt = 199473.0
Is there a class in skyfield.positionlib
that I can use to accomplish this calculation?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
eci2lla - MathWorks
This MATLAB function converts Earth-centered inertial (ECI) coordinates, specified by position, to latitude, longitude, altitude (LLA) geodetic coordinates.
Read more >Convert ECI coordinates to latitude/longitude?
It gives a good explanation of how to convert between the two co-ordinate systems. It seems getting the latitude from ECI is straight ......
Read more >geo2eci.pro
NAME: ; GEO2ECI ; ; PURPOSE: ; Convert geographic spherical coordinates to ... geographic spherical coordinates [latitude, longitude, ; altitude] to ECI ......
Read more >Geocentric to topocentric conversion - PROJ
When conversion between geographic and topocentric coordinates is desired, the topocentric conversion must be preceded by the Geodetic to cartesian conversion ...
Read more >Geographic coordinate conversion - Wikipedia
In geodesy, conversion among different geographic coordinate systems is made necessary by the different geographic coordinate systems in use across the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re correct, I had to update the line below it as well, edited my comment above to reflect that.
Great! Now I just need to figure out where this will go in the documentation. Might take a week or two.
But, if I’m reading correctly, that would leave
d
as a plain Python list. Wouldn’t that raise anAttributeError
in the next line whered
is asked for its.au
attribute?