Skip to content

Commit

Permalink
Update celestrak urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Dagoneau committed Dec 31, 2023
1 parent 137e201 commit 7d40562
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions pyorbital/tlefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@
from xml.etree import ElementTree as ET
from itertools import zip_longest


TLE_URLS = ('https://celestrak.org/NORAD/elements/active.txt',
'https://celestrak.org/NORAD/elements/weather.txt',
'https://celestrak.org/NORAD/elements/resource.txt',
'https://celestrak.org/NORAD/elements/cubesat.txt',
'https://celestrak.org/NORAD/elements/stations.txt',
'https://celestrak.org/NORAD/elements/sarsat.txt',
'https://celestrak.org/NORAD/elements/noaa.txt',
'https://celestrak.org/NORAD/elements/amateur.txt',
'https://celestrak.org/NORAD/elements/engineering.txt')
TLE_GROUPS = ('active',
'weather',
'resource',
'cubesat',
'stations',
'sarsat',
'noaa',
'amateur',
'engineering')

TLE_URLS = [f'https://celestrak.org/NORAD/elements/gp.php?GROUP={group}&FORMAT=tle'
for group in TLE_GROUPS]


LOGGER = logging.getLogger(__name__)
Expand Down

0 comments on commit 7d40562

Please sign in to comment.