-
Notifications
You must be signed in to change notification settings - Fork 77
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
Orbital
cannot get TLEs from the internet
#139
Comments
See: #138. In the meantime you could use my fix: https://github.com/dagnic/pyorbital/tree/main, just clone and pip install. |
That is interesting. import requests
url = `https://celestrak.org/NORAD/elements/gp.php?GROUP=noaa&FORMAT=tle`
requests.get(url) output: Anyway, it is now working, and the output of |
This problem was due to a download limit (excessive use). After 2 hours the block is removed. |
I don't think the issue should be closed as the PR for the original issue is not approved yet. The second issue you described is well explained in this post by T.S. Kelso.
This behaviour is not well supported by pyorbital and, maybe, we should consider to implement it: download once, save in TLES path, redownload only if file doesn't exist or is older than 2 hours. |
from pyorbital import tlefile I am getting this error - HTTPError Traceback (most recent call last) ~\Anaconda3\lib\site-packages\pyorbital\tlefile.py in read(platform, tle_file, line1, line2) ~\Anaconda3\lib\site-packages\pyorbital\tlefile.py in init(self, platform, tle_file, line1, line2) ~\Anaconda3\lib\site-packages\pyorbital\tlefile.py in _read_tle(self) ~\Anaconda3\lib\site-packages\pyorbital\tlefile.py in _get_first_tle(uris, open_func, platform) ~\Anaconda3\lib\site-packages\pyorbital\tlefile.py in _get_tles_from_uris(uris, open_func, platform, only_first) ~\Anaconda3\lib\urllib\request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context) ~\Anaconda3\lib\urllib\request.py in open(self, fullurl, data, timeout) ~\Anaconda3\lib\urllib\request.py in http_response(self, request, response) ~\Anaconda3\lib\urllib\request.py in error(self, proto, *args) ~\Anaconda3\lib\urllib\request.py in _call_chain(self, chain, kind, meth_name, *args) ~\Anaconda3\lib\urllib\request.py in http_error_default(self, req, fp, code, msg, hdrs) HTTPError: HTTP Error 404: Not Found |
Its the same - its fixed now - I copied the latest tlefile.py - really appreciate it @djhoese |
Thanks for raising this and preparing a solution @dagnic |
Closed via #138 and just released on PyPI as 1.8.1. A conda-forge package will come later today. |
It's been a couple of days that
Orbital
has stopped functioning for seemingly all TLEs (same result forMeteosat-8
,Suomi NPP
, etc.):Output:
pyorbital version: 1.6.1
OS: Centos 7
The text was updated successfully, but these errors were encountered: