Commit 44a1c0a2 authored by Alice Donini's avatar Alice Donini
Browse files

add script and update docs

parent 762e07b7
Loading
Loading
Loading
Loading

IERS_download.py

0 → 100644
+8 −0
Original line number Original line Diff line number Diff line
from astropy.utils import iers
from astropy.utils.data import import_file_to_cache, download_file


WORKING_IERS_A_URL = "https://maia.usno.navy.mil/ser7/finals2000A.all"

path = download_file(WORKING_IERS_A_URL)
import_file_to_cache(iers.IERS_A_URL, path, replace=True)
+7 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,13 @@ There are two different scripts to generate the DL3 file:


  At the moment is recommended the use of the first script `DL2_to_DL3.py` and generate your own DL2 data, since the automatized generation of DL2 data is not optimized.
  At the moment is recommended the use of the first script `DL2_to_DL3.py` and generate your own DL2 data, since the automatized generation of DL2 data is not optimized.


.. note::

  In the case the run of the job fails due to an astropy error about too old values of the IERS data:
  .. code-block::
    ValueError: interpolating from IERS_Auto using predictive values that are more than 30.0 days old.
  run before the script `IERS_download.py` to download offline the data and update the astropy tables.



DL2_to_DL3.py
DL2_to_DL3.py
--------------
--------------