pint.observatory.global_clock_corrections

Tools for working with clock corrections obtained from a global location.

The goal is for PINT (and other programs) to be able to download up-to-date observatory clock corrections from a central location, which observatories or third parties will update as new clock correction data becomes available.

The global repository is currently hosted on github. Available clock correction files and their updating requirements are listed in a file there called index.txt. This too is checked occasionally for updates.

The downloaded files are stored in the Astropy cache, to clear out old files you will want to do astropy.utils.data.clear_download_cache().

Functions

get_clock_correction_file(filename[, ...])

Obtain a current version of the clock correction file.

get_file(name[, update_interval_days, ...])

Obtain a local file pointing to a current version of name.

update_all([export_to, download_policy, ...])

Download and update all clock corrections in the index.

Classes

Index([download_policy, url_base, url_mirrors])

Index of files available from the global repository.

IndexEntry(file, update_interval_days, ...)

Create new instance of IndexEntry(file, update_interval_days, invalid_if_older_than, extra)