-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Finals2000A download fails, server unavailable #730
Comments
I'm having the same issue.
|
Here is the message sent by IERS:
Thank you for that idea. Here is what I implemented as a fallback for my own code in case the original loader throws an exception.
Probably this ticket should be moved to a feature request. |
Thanks for the information you have both provided! Hopefully other Skyfield users who are affected can use the URLs and example code you've shared. I'm not sure I want to start adding backup URLs to Skyfield yet, since it could lead to two runs of the program leading to different results without the user realizing why, if Skyfield was automatically switching URLs based on availability (and thus perhaps getting different or old versions of a file). |
I spoke with someone at IERS in Frankfurt who assured me that the ftp.iers.org server should be the primary choice for downloading EOP data. He also reminded me that although the USNO server (maia.usno.navy.mil) is up and running, the last time it was down it took 2.5 years to bring it back online. So I agree that Skyfield should stick only to the official download URL. However, to cater for the geeky types that, like me, prefer to have another option that "always" works, I implemented a solution (in SFalmanac and Skyalmanac) that first checks if the IERS server is working (because Skyfield 1.42 just fails like ... end of story): I first check if we have an Internet connection at all (by checking if either of the two servers is reachable) ... because if you are stuck on a yacht in the middle of an ocean it would be far more prudent to continue using the current EOP data than fussing about it being over 30 days old, of course. I borrowed heavily on the Skyfield iokit.py code to implement an alternative connection to the USNO server, which uses https (not ftp) ... and it works nevertheless. Sorry, no certificate checks. So here is my code snippet in case it helps anyone. Initially init_sf(spad) is called with a folder (in "spad") in which to store the downloaded file. config.useIERS is True if the user wants to use the EOP data (as opposed to the bulit-in UT1-tables). config.ageIERS is the maximum age in days (as text) tolerated. I use this on Windows 10 and Ubuntu 20.04 LTS - I have no access to MacOS. Good luck!
EDIT: A minor update to
works perfectly in Windows and in Linux. The above code has been updated. |
Since two days I get the error:
cannot download ftp://ftp.iers.org/products/eop/rapid/standard/finals2000A.all because <urlopen error ftp error: error_perm('530 connect failed: Operation timed out. No response from server.')>
When checking on the website, there seems indeed to be some server error, because the website also does not show the required information (of course accessed through regular browser)
Does anyone have this issue aswell and is there a way to provide a backup download source for the finals2000A?
Running latest version of skyfield on python 3.8 on a ubuntu server.
The text was updated successfully, but these errors were encountered: