pytroll / pyorbital

Orbital and astronomy computations in python
http://pyorbital.readthedocs.org/
GNU General Public License v3.0
224 stars 77 forks source link

Limitations on URLLIB Read for TLE #15

Closed jordanlui closed 7 years ago

jordanlui commented 7 years ago

Hi there, Noticed that the tlefile.read will only check two NORAD TLE URLs from Celestrak. Was wondering if you could add the other Celestrak URLs, such as https://www.celestrak.com/NORAD/elements/cubesat.txt?

Thanks!

mraspaud commented 7 years ago

Hi,

Sure, that would be very nice ! I can't really work on this atm, but contributions are welcome :)

jordanlui commented 7 years ago

Hi Martin, I made some small changes and submitted pull request.

Thanks!

Jordan Lui Optical Engineering Research Associate, Roma Tre University MASc Candidate, Simon Fraser University BASc Chemical Engineering University of Waterloo http://ca.linkedin.com/in/jordanlui

On Thu, Aug 31, 2017 at 11:15 PM, Martin Raspaud notifications@github.com wrote:

Hi,

Sure, that would be very nice ! I can't really work on this atm, but contributions are welcome :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pytroll/pyorbital/issues/15#issuecomment-326498767, or mute the thread https://github.com/notifications/unsubscribe-auth/AJt6_2INkN3Ab5kjMMtp9z6UVzt0_YH6ks5sd6DygaJpZM4PJLN1 .

mraspaud commented 7 years ago

Perfect ! Thanks !

slawoszuznanski commented 5 years ago

Dear all, would it be possible to manually read TLE from a text file? Celestrak URLs are very limiting... I tried to add other URLs in the tlefile.py (l.37) but it does not seem to work. Could you please give a hand or give me some pointers how to add new TLE files?

TLE_URLS = ('http://celestrak.com/NORAD/elements/weather.txt', 'http://celestrak.com/NORAD/elements/resource.txt', 'https://www.celestrak.com/NORAD/elements/cubesat.txt', 'http://celestrak.com/NORAD/elements/stations.txt', 'https://www.celestrak.com/NORAD/elements/sarsat.txt', 'https://www.celestrak.com/NORAD/elements/noaa.txt', 'https://www.celestrak.com/NORAD/elements/amateur.txt')

Thanks!

Slawosz

TAlonglong commented 5 years ago

I use like this:

TLES=/data/pytroll/tle-in/tle_db/tle-latest.txt <pytroll command which need tles>

So TLES is a environmental variable.

clausqr commented 5 years ago

Hi! Would it be possible to add 'https://www.celestrak.com/NORAD/elements/engineering.txt' to the list of TLEs?

i.e.:

--- tlefile.py        2019-06-21 18:22:22.000000000 -0300
+++ tlefile.py        2019-06-21 18:22:42.000000000 -0300
@@ -40,8 +40,9 @@
             'http://celestrak.com/NORAD/elements/stations.txt',
             'https://www.celestrak.com/NORAD/elements/sarsat.txt',
             'https://www.celestrak.com/NORAD/elements/noaa.txt',
-            'https://www.celestrak.com/NORAD/elements/amateur.txt')
-
+            'https://www.celestrak.com/NORAD/elements/amateur.txt',
+            'https://www.celestrak.com/NORAD/elements/engineering.txt')
+            
 LOGGER = logging.getLogger(__name__)
 PKG_CONFIG_DIR = os.path.join(os.path.realpath(os.path.dirname(__file__)), 'etc')
mraspaud commented 5 years ago

I don't see why not, PR welcome !