.. _utils-iers: ************************************************ IERS data access (`astropy.utils.iers`) ************************************************ Introduction ============ The `~astropy.utils.iers` package provides access to the tables provided by the International Earth Rotation and Reference Systems (IERS) service, in particular allowing interpolation of published UT1-UTC values for given times. These are used in `astropy.time` to provide UT1 values. The polar motions are also used for determining Earth orientation for celestial-to-terrestrial coordinate transformations (in `astropy.coordinates`). Getting started =============== Starting with astropy 1.2, the latest IERS values (which include approximately one year of predictive values) are automatically downloaded from the IERS service when required. This happens when a time or coordinate transformation needs a value which is not already available via the download cache. In most cases there is no need for invoking the `~astropy.utils.iers` classes oneself, but it is useful to understand the situations when a download will occur and how this can be controlled. Basic usage ----------- The IERS data are managed via a instances of the :class:`~astropy.utils.iers.IERS_Auto` class. These instances are created internally within the relevant time and coordinate objects during transformations. If the astropy data cache does not have the required IERS data file then astropy will request the file from the IERS service. This will occur the first time such a transform is done for a new setup or on a new machine. Here is an example that shows the typical download progress bar:: >>> from astropy.time import Time >>> t = Time('2016:001') >>> t.ut1 # doctest: +SKIP Downloading http://maia.usno.navy.mil/ser7/finals2000A.all |==================================================================| 3.0M/3.0M (100.00%) 6s