Skip to content

Commit

Permalink
Merge pull request #138 from dagnic/main
Browse files Browse the repository at this point in the history
Update celestrak urls
  • Loading branch information
djhoese authored Jan 5, 2024
2 parents 137e201 + 7d40562 commit 0428c8a
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 0428c8a

Please sign in to comment.