-
-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include offline data to emulate PyEphem's readtle #89
Comments
Satellite coordinates are only good for about a week or two before they become too inaccurate to be useful. A data package would have to be released every week, and have a way to auto-update probably since it would be useless so quickly. Could we maybe instead add a function that makes it easy for a user to pull down a data file from one of the official sources, so their release schedule would also serve for Skyfield users? Would a TLE file in your local directory, like Skyfield already puts |
I accept responsibility for maintaining the freshness of my TLEs, that's not the problem. The BSP files don't change very often and are valid for decades or more. My particular pain point comes from:
Ideally I'd like something resembling the offline friendly behavior of pyephem.EarthSatellite.readtle |
#85 also seems relevant here, since my application is all about earth satellites rather than astronomy. |
I should add documentation on offline use, for people who need to sacrifice accuracy in return for being able to use Skyfield offline! Furthermore, I should probably, if possible, have the error that Skyfield prints when offline go ahead and describe how to use Skyfield without network connectivity. Do you know which file Skyfield was trying to download when you ran into the problem? A traceback would help me know which use case / problem to tackle first! |
I can get the exact error later but I was getting connection reset (firewall blocking me) while fetching de421.bsp. You can reproduce that by adding a hosts file entry to make jpl resolve to localhost. Because the traceback contained the URL that the loader was requesting, it was a simple matter able to fetch the files manually on a different machine and drop them into the data directory. I'd very much like to see documentation of offline use, then I can do some testing to compare online and offline performance. |
IOError Traceback (most recent call On Thu, May 12, 2016 at 1:40 AM, Brandon Rhodes [email protected]
GDB has a 'break' feature; why doesn't it have 'fix' too? |
Thank you for spurring me to add explicit support for offline use! I plan to make a new Skyfield release this evening — look for a new “Downloading and Using Data Files” chapter in the docs that will explain a new, clean mechanism for preventing surprise downloads if you already have the data files you need on disk. |
Inspired by #74, it would be nice if a base data package could be provided - ideally in a way that would emulate ephem.EarthSatellite.readtle. I've been spending a lot of time lately in places without good network connectivity, so having some geocentric defaults available would be very handy.
The text was updated successfully, but these errors were encountered: