skyfielders / python-skyfield

Elegant astronomy for Python
MIT License
1.43k stars 213 forks source link

Calculate the latitude/longitude #168

Closed tmamedzadeh closed 6 years ago

tmamedzadeh commented 6 years ago

I'm willing to use Skyfield to calculate the latitude/longitude of a satellite from the TLE, if I could find an example of calculations.

Now, I use the following to get the result in GCRS:

geocentric = satellite.at(t)
print(geocentric.position.km)

Also, I use alt, az, distance = topocentric.altaz() to get az/el.

However, in the documentation I couldn't find any information about getting the latitude and longitude of ITRS frame. I would appreciate if you could share some examples.

brandon-rhodes commented 6 years ago

Great question! Turning a satellite position into longitude and latitude will be in the next version. I'll update this issue once I have it released; hopefully, soon!