Closed bismurphy closed 4 years ago
The underlying problem is that those satellite elements are only valid for a few weeks around a date back in 2014:
print(satellite.epoch.utc_jpl())
Prints:
A.D. 2014-Jan-20 22:23:04.0004 UT
For satellite propagation to return nan
so many weeks from the date of the elements is normal and expected.
What's a bit more confusing is the exception, which I've never seen before; your script on my computer simply prints nan
twice without any exception. If you're curious why a nan
calculation causes that exception on your platform, you might try searching Stack Overflow; it looks like it might be something specific to Windows?
I'm going to close this for now since I don't have a way to reproduce it on my own machine, but if you have concerns that my answer last week didn't address, simply re-open the issue and follow up with more information. Thanks!
Hi, I'm trying to do some satellite propagation. I ran into some issues with my script, so I pulled up a skyfield example to make sure I'm not coding wrong. Here's the code:
This gives:
and the latitude and longitude values that get printed are NaN's. I uninstalled and reinstalled Skyfield, which didn't help.