You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IERS Bulletin domain banned from certain countries #410
Hi, we have a Google Summer of Code student who is working for us and they are running into some problems with the IERS download because the .mil domain is blocked in their country.
Is there a non-military domain where this is available? We could probably download a local copy ourselves and re-host it, but I'm not sure if that's even allowed.
Hi @wtgee -- sorry IERS is giving you trouble, I know how frustrating that is. This came up in astropy/astropy#5059 and astropy/astropy#5194, and we found alternative servers also with the .mil domain. Some googling yields that this address might be a viable alternative:
Thanks @ImmortalRabbit. For others in the future can you post the code that actually worked and then I'll close.
Sorry, but it works strange, maybe I am doing something wrong. But when I run pytest it shows me to download it again.
What I did:
from astropy.utils.iers import IERS_A_URL
IERS_A_URL = 'ftp://cddis.gsfc.nasa.gov/pub/products/iers/finals.all'
from astroplan import download_IERS_A
download_IERS_A()
It worked once, but when I did it again it showed me error.
Traceback (most recent call last):
File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/lib/python3.6/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.6/socket.py", line 704, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/astroplan/utils.py", line 126, in download_IERS_A
show_progress=show_progress)
File "/usr/lib/python3.6/site-packages/astropy/utils/data.py", line 1091, in download_file
raise e
File "/usr/lib/python3.6/site-packages/astropy/utils/data.py", line 1024, in download_file
with urllib.request.urlopen(remote_url, timeout=timeout) as remote:
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
Even if it downloads or not, there is still errors when I run test_observatory that ask to update astroplan.
E astropy.utils.iers.iers.IERSRangeError: (some) times are outside of range covered by IERS table.
FYI, I've emailed the maintainers of the Bulletin to ask about redistribution rights for PANOPTES specific items, but this could remain an issue for certain international users.
Yeah it sounds like building a local mirror of the IERS table might be a slightly more permanent solution. Feel free to close the issue if/when you create one!
* *
* Distribution statement A. *
* Approved for public release: distribution unlimited. *
* *
***********************************************************************
Just a quick follow-up that I heard from the Navy folks and re-hosting on a public mirror is not actually possible without explicit permission. We can work around things but wanted to let others know.
Activity
bmorris3 commentedon Jun 15, 2019
Hi @wtgee -- sorry IERS is giving you trouble, I know how frustrating that is. This came up in astropy/astropy#5059 and astropy/astropy#5194, and we found alternative servers also with the
.mildomain. Some googling yields that this address might be a viable alternative:Lemme know if this helps!
wtgee commentedon Jun 16, 2019
@ImmortalRabbit can you report here if the above works for you?
ImmortalRabbit commentedon Jun 17, 2019
@wtgee @bmorris3 It worked. Thanks.
wtgee commentedon Jun 17, 2019
Thanks @ImmortalRabbit. For others in the future can you post the code that actually worked and then I'll close.
ImmortalRabbit commentedon Jun 17, 2019
Sorry, but it works strange, maybe I am doing something wrong. But when I run pytest it shows me to download it again.
What I did:
It worked once, but when I did it again it showed me error.
Even if it downloads or not, there is still errors when I run test_observatory that ask to update astroplan.
@wtgee @bmorris3
wtgee commentedon Jun 17, 2019
Looks like NASA is redirecting
ftptoftps(FTP over SSL, not SFTP) and the underlyingurllib.requestisn't handling that well.wtgee commentedon Jun 17, 2019
FYI, I've emailed the maintainers of the Bulletin to ask about redistribution rights for PANOPTES specific items, but this could remain an issue for certain international users.
bmorris3 commentedon Jun 17, 2019
Yeah it sounds like building a local mirror of the IERS table might be a slightly more permanent solution. Feel free to close the issue if/when you create one!
wtgee commentedon Jun 17, 2019
Thanks @bmorris3. Are you aware if there are any issues with setting up a local mirror?
bmorris3 commentedon Jun 17, 2019
Not that I know of, but I am far from the keeper of IERS 😉
wtgee commentedon Jun 18, 2019
FYI, file itself says:
We'll make our own mirror. Thanks!
wtgee commentedon Jun 18, 2019
Just a quick follow-up that I heard from the Navy folks and re-hosting on a public mirror is not actually possible without explicit permission. We can work around things but wanted to let others know.