/sdptk-iers-updater

Update leapsec and utcpole data files inside an SDPTK installation

Primary LanguageShellGNU General Public License v3.0GPL-3.0

sdptk-iers-updater

Update leapsec and utcpole data files inside an SDPTK installation

Requirements

  • SDP Toolkit
    • This must already be compiled and installed.
    • The sdptk-iers-* tools must run as the user that owns at least the database and runtime directory trees.
  • Bash
    • 4.2 or later
  • Curl
    • 7.29 (ie, RHEL/Centos 7) is known to work
  • Probably other GNU or Linux-centric utilities

Setup

Choose a provided *.inc file, or copy settings.inc.template to a new file and edit the placeholders.

If using cddis-https.inc, or any other IERS data provider that requires Earthdata Login, then add the $HOME/.netrc file as described by How To Access Data With cURL And Wget.

For the tests below, preload the appropriate $PGSHOME/bin/$BRAND/pgs-env.* file for your shell.

Shell family Example source command on 64-bit Linux
sh, ksh, bash, ... . /usr/local/sdptk/bin/linux64/pgs-env.ksh
csh, tcsh, ... source /usr/local/sdptk/bin/linux64/pgs-env.csh

A simple test

  1. Download the latest IERS inputs to the appropriate database directories.

    sdptk-iers-fetch-inputs somesettings.inc
    
  2. Run the updaters.

    sdptk-iers-run-updaters
    
  3. Check the files.

    head $PGSHOME/database/common/TD/leapsec.dat $PGSHOME/database/common/CSC/utcpole.dat
    tail $PGSHOME/database/common/TD/leapsec.dat $PGSHOME/database/common/CSC/utcpole.dat
    

TODO Use in a task scheduler

The IERS data files provided by CDDIS seem to be updated daily, but SDPTK can probably live with weekly updates.

. /usr/local/sdptk/bin/linux64/pgs-env.ksh && sdptk-iers-fetch-inputs somesettings.inc && sdptk-iers-run-updaters