Skip to content
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

Update leap seconds data url #1

Merged
merged 6 commits into from
Aug 12, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions gps_timemachine/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@


def _get_tai_utc():
# documentation for leap seconds http://tycho.usno.navy.mil/leapsec.html
URLS_TO_TRY = ('http://maia.usno.navy.mil/ser7/tai-utc.dat',
'http://toshi.nofs.navy.mil/ser7/tai-utc.dat',
'ftp://cddis.gsfc.nasa.gov/pub/products/iers/tai-utc.dat')
# Add URLS as needed. We have encountered errors with various servers over
# the years, and now there is only one known source of the data that's
# publicly available and not behind earthdata login. A mirror of the navy
# tai-utc.dat file can be found here:
# https://cddis.nasa.gov/archive/products/iers/tai-utc.dat, behind earthdata
# login. Earthdata login is not currently supported by gps-timemachine.
URLS_TO_TRY = ('https://maia.usno.navy.mil/ser7/tai-utc.dat',)

for url in URLS_TO_TRY:
try:
Expand Down
Loading