ipta / pulsar-clock-corrections

Distribution point and tools for observatory clock corrections for pulsar timing.
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

download_clock_corrections.py did the wrong thing! #2

Closed paulray closed 2 years ago

paulray commented 2 years ago

Ack! I ran download_clock_corrections.py and it replaced all my clock files with this 55-line file:

# File                                   Update (days)   Invalid if older than
T2runtime/clock/gps2utc_tempo2.clk                 7.0   ---
T2runtime/clock/gps2utc.clk                        1.0   ---
T2runtime/clock/gps2utc_cc.clk                     1.0   ---
T2runtime/clock/gps2utc_c0p.clk                    1.0   ---
tempo/clock/time_gbt.dat                           1.0   ---
T2runtime/clock/gbt2gps_tempo2.clk                 7.0   ---
T2runtime/clock/gbt2gps.clk                        1.0   ---
tempo/clock/time_jb.dat                            7.0   ---
T2runtime/clock/jb2gps.clk                         7.0   ---
tempo/clock/time_ao.dat                            inf   2022-05-20
T2runtime/clock/ao2gps.clk                         inf   2022-06-07
T2runtime/clock/ao2gps_tempo2.clk                  inf   ---
T2runtime/clock/ao2nist.clk                        inf   ---
tempo/clock/time_gb140.dat                         inf   ---
tempo/clock/time_gb853.dat                         inf   ---
tempo/clock/time_vla.dat                           7.0   ---
T2runtime/clock/vla2gps.clk                        7.0   ---
T2runtime/clock/vla2nist.clk                       7.0   ---
tempo/clock/time_fast.dat                          7.0   ---
T2runtime/clock/wsrt2gps.clk                       7.0   ---
tempo/clock/time_wsrt.dat                          7.0   ---
T2runtime/clock/pks2gps.clk                        7.0   ---
tempo/clock/time_pks.dat                           7.0   ---
T2runtime/clock/srt2gps.clk                        7.0   ---
T2runtime/clock/eff2gps.clk                        7.0   ---
T2runtime/clock/effix2gps.clk                      7.0   ---
tempo/clock/time_nuppi.dat                         7.0   ---
T2runtime/clock/mk2utc_observatory.clk             7.0   ---
T2runtime/clock/mk2utc.clk                         7.0   ---
T2runtime/clock/mo2gps.clk                         7.0   ---
T2runtime/clock/ncyobs2obspm.clk                   7.0   ---
T2runtime/clock/chime2gps.clk                      inf   ---
T2runtime/clock/gmrt2gps.clk                       inf   ---
T2runtime/clock/obspm2gps.clk                      7.0   ---
tempo/clock/leap.sec                               0.0   ---
tempo/clock/ut1.dat                                0.0   ---
T2runtime/clock/tai2tt_bipm2021.clk                inf   ---
T2runtime/clock/tai2tt_bipm2020.clk                inf   ---
T2runtime/clock/tai2tt_bipm2019.clk                inf   ---
T2runtime/clock/tai2tt_bipm2018.clk                inf   ---
T2runtime/clock/tai2tt_bipm2017.clk                inf   ---
T2runtime/clock/tai2tt_bipm2016.clk                inf   ---
T2runtime/clock/tai2tt_bipm2015.clk                inf   ---
T2runtime/clock/tai2tt_bipm2014.clk                inf   ---
T2runtime/clock/tai2tt_bipm2013.clk                inf   ---
T2runtime/clock/tai2tt_bipm2012.clk                inf   ---
T2runtime/clock/tai2tt_bipm2010.clk                inf   ---
T2runtime/clock/tai2tt_bipm06.clk                  inf   ---
T2runtime/clock/tai2tt_bipm05.clk                  inf   ---
T2runtime/clock/tai2tt_bipm2004.clk                inf   ---
T2runtime/clock/tai2tt_bipm2003.clk                inf   ---
T2runtime/clock/tai2tt_bipm01.clk                  inf   ---
T2runtime/clock/tai2tt_bipm92.clk                  inf   ---
paulray commented 2 years ago

Here is the output of the run:

% download-clock-corrections.py 
Downloading index from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/index.txt
Downloading T2runtime/clock/gps2utc_tempo2.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/gps2utc_tempo2.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/gps2utc_tempo2.clk
New file T2runtime/clock/gps2utc_tempo2.clk
Downloading T2runtime/clock/gps2utc.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/gps2utc.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/gps2utc.clk
New version of T2runtime/clock/gps2utc.clk has 55 lines and old version has 12839 lines, updating
Downloading T2runtime/clock/gps2utc_cc.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/gps2utc_cc.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/gps2utc_cc.clk
New file T2runtime/clock/gps2utc_cc.clk
Downloading T2runtime/clock/gps2utc_c0p.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/gps2utc_c0p.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/gps2utc_c0p.clk
New file T2runtime/clock/gps2utc_c0p.clk
Downloading tempo/clock/time_gbt.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_gbt.dat to /Software/tempo/clock/time_gbt.dat
New version of tempo/clock/time_gbt.dat has 55 lines and old version has 6916 lines, updating
Downloading T2runtime/clock/gbt2gps_tempo2.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/gbt2gps_tempo2.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/gbt2gps_tempo2.clk
New file T2runtime/clock/gbt2gps_tempo2.clk
Downloading T2runtime/clock/gbt2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/gbt2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/gbt2gps.clk
New version of T2runtime/clock/gbt2gps.clk has 55 lines and old version has 6915 lines, updating
Downloading tempo/clock/time_jb.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_jb.dat to /Software/tempo/clock/time_jb.dat
New version of tempo/clock/time_jb.dat has 55 lines and old version has 109207 lines, updating
Downloading T2runtime/clock/jb2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/jb2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/jb2gps.clk
New version of T2runtime/clock/jb2gps.clk has 55 lines and old version has 130741 lines, updating
Downloading tempo/clock/time_ao.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_ao.dat to /Software/tempo/clock/time_ao.dat
New version of tempo/clock/time_ao.dat has 55 lines and old version has 9585 lines, updating
Downloading T2runtime/clock/ao2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/ao2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/ao2gps.clk
New version of T2runtime/clock/ao2gps.clk has 55 lines and old version has 8411 lines, updating
Downloading T2runtime/clock/ao2gps_tempo2.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/ao2gps_tempo2.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/ao2gps_tempo2.clk
New file T2runtime/clock/ao2gps_tempo2.clk
Downloading T2runtime/clock/ao2nist.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/ao2nist.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/ao2nist.clk
New version of T2runtime/clock/ao2nist.clk has 55 lines and old version has 976 lines, updating
Downloading tempo/clock/time_gb140.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_gb140.dat to /Software/tempo/clock/time_gb140.dat
New version of tempo/clock/time_gb140.dat has 55 lines and old version has 1674 lines, updating
Downloading tempo/clock/time_gb853.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_gb853.dat to /Software/tempo/clock/time_gb853.dat
New version of tempo/clock/time_gb853.dat has 55 lines and old version has 9 lines, updating
Downloading tempo/clock/time_vla.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_vla.dat to /Software/tempo/clock/time_vla.dat
New version of tempo/clock/time_vla.dat has 55 lines and old version has 2180 lines, updating
Downloading T2runtime/clock/vla2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/vla2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/vla2gps.clk
New version of T2runtime/clock/vla2gps.clk has 55 lines and old version has 2156 lines, updating
Downloading T2runtime/clock/vla2nist.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/vla2nist.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/vla2nist.clk
New version of T2runtime/clock/vla2nist.clk has 55 lines and old version has 27 lines, updating
Downloading tempo/clock/time_fast.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_fast.dat to /Software/tempo/clock/time_fast.dat
New file tempo/clock/time_fast.dat
Downloading T2runtime/clock/wsrt2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/wsrt2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/wsrt2gps.clk
New version of T2runtime/clock/wsrt2gps.clk has 55 lines and old version has 5818 lines, updating
Downloading tempo/clock/time_wsrt.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_wsrt.dat to /Software/tempo/clock/time_wsrt.dat
New version of tempo/clock/time_wsrt.dat has 55 lines and old version has 3556 lines, updating
Downloading T2runtime/clock/pks2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/pks2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/pks2gps.clk
New version of T2runtime/clock/pks2gps.clk has 55 lines and old version has 44806 lines, updating
Downloading tempo/clock/time_pks.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_pks.dat to /Software/tempo/clock/time_pks.dat
New version of tempo/clock/time_pks.dat has 55 lines and old version has 5821 lines, updating
Downloading T2runtime/clock/srt2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/srt2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/srt2gps.clk
New version of T2runtime/clock/srt2gps.clk has 55 lines and old version has 3695 lines, updating
Downloading T2runtime/clock/eff2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/eff2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/eff2gps.clk
New version of T2runtime/clock/eff2gps.clk has 55 lines and old version has 3851 lines, updating
Downloading T2runtime/clock/effix2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/effix2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/effix2gps.clk
New version of T2runtime/clock/effix2gps.clk has 55 lines and old version has 3843 lines, updating
Downloading tempo/clock/time_nuppi.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/time_nuppi.dat to /Software/tempo/clock/time_nuppi.dat
New version of tempo/clock/time_nuppi.dat has 55 lines and old version has 7509 lines, updating
Downloading T2runtime/clock/mk2utc_observatory.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/mk2utc_observatory.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/mk2utc_observatory.clk
New file T2runtime/clock/mk2utc_observatory.clk
Downloading T2runtime/clock/mk2utc.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/mk2utc.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/mk2utc.clk
New version of T2runtime/clock/mk2utc.clk has 55 lines and old version has 71654 lines, updating
Downloading T2runtime/clock/mo2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/mo2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/mo2gps.clk
New version of T2runtime/clock/mo2gps.clk has 55 lines and old version has 206 lines, updating
Downloading T2runtime/clock/ncyobs2obspm.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/ncyobs2obspm.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/ncyobs2obspm.clk
New version of T2runtime/clock/ncyobs2obspm.clk has 55 lines and old version has 18836 lines, updating
Downloading T2runtime/clock/chime2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/chime2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/chime2gps.clk
New file T2runtime/clock/chime2gps.clk
Downloading T2runtime/clock/gmrt2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/gmrt2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/gmrt2gps.clk
New file T2runtime/clock/gmrt2gps.clk
Downloading T2runtime/clock/obspm2gps.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/obspm2gps.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/obspm2gps.clk
New version of T2runtime/clock/obspm2gps.clk has 55 lines and old version has 6429 lines, updating
Downloading tempo/clock/leap.sec from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/leap.sec to /Software/tempo/clock/leap.sec
New version of tempo/clock/leap.sec has 55 lines and old version has 28 lines, updating
Downloading tempo/clock/ut1.dat from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/tempo/clock/ut1.dat to /Software/tempo/clock/ut1.dat
New version of tempo/clock/ut1.dat has 55 lines and old version has 641 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2021.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2021.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2021.clk
New file T2runtime/clock/tai2tt_bipm2021.clk
Downloading T2runtime/clock/tai2tt_bipm2020.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2020.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2020.clk
New file T2runtime/clock/tai2tt_bipm2020.clk
Downloading T2runtime/clock/tai2tt_bipm2019.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2019.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2019.clk
New version of T2runtime/clock/tai2tt_bipm2019.clk has 55 lines and old version has 1735 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2018.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2018.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2018.clk
New version of T2runtime/clock/tai2tt_bipm2018.clk has 55 lines and old version has 1595 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2017.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2017.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2017.clk
New version of T2runtime/clock/tai2tt_bipm2017.clk has 55 lines and old version has 1665 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2016.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2016.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2016.clk
New version of T2runtime/clock/tai2tt_bipm2016.clk has 55 lines and old version has 1387 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2015.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2015.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2015.clk
New version of T2runtime/clock/tai2tt_bipm2015.clk has 55 lines and old version has 1486 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2014.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2014.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2014.clk
New version of T2runtime/clock/tai2tt_bipm2014.clk has 55 lines and old version has 1449 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2013.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2013.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2013.clk
New version of T2runtime/clock/tai2tt_bipm2013.clk has 55 lines and old version has 1412 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2012.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2012.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2012.clk
New version of T2runtime/clock/tai2tt_bipm2012.clk has 55 lines and old version has 1441 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2010.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2010.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2010.clk
New version of T2runtime/clock/tai2tt_bipm2010.clk has 55 lines and old version has 1340 lines, updating
Downloading T2runtime/clock/tai2tt_bipm06.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm06.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm06.clk
New version of T2runtime/clock/tai2tt_bipm06.clk has 55 lines and old version has 1157 lines, updating
Downloading T2runtime/clock/tai2tt_bipm05.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm05.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm05.clk
New version of T2runtime/clock/tai2tt_bipm05.clk has 55 lines and old version has 1120 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2004.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2004.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2004.clk
New version of T2runtime/clock/tai2tt_bipm2004.clk has 55 lines and old version has 1071 lines, updating
Downloading T2runtime/clock/tai2tt_bipm2003.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm2003.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm2003.clk
New version of T2runtime/clock/tai2tt_bipm2003.clk has 55 lines and old version has 1037 lines, updating
Downloading T2runtime/clock/tai2tt_bipm01.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm01.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm01.clk
New version of T2runtime/clock/tai2tt_bipm01.clk has 55 lines and old version has 937 lines, updating
Downloading T2runtime/clock/tai2tt_bipm92.clk from https://raw.githubusercontent.com/ipta/pulsar-clock-corrections/main/T2runtime/clock/tai2tt_bipm92.clk to /Software/tempo2/tempo2-bitbucket/T2runtime/clock/tai2tt_bipm92.clk
New version of T2runtime/clock/tai2tt_bipm92.clk has 55 lines and old version has 607 lines, updating
aarchiba commented 2 years ago

Thanks for the report and the fix!