lofar-astron / DP3

DP3: streaming processing pipeline for radio interferometric data
GNU General Public License v3.0
15 stars 10 forks source link

times and coordinates derived from UTC could be wrong by 1s or more #339

Closed anshusolar closed 2 years ago

anshusolar commented 2 years ago

While using DP3, I am getting this warning:

I am using DP3 to predict the parameters for calibration.

predict.parset file contains:

msin=L242128_SB100_uv.dppp.MS
msout=.
steps=[gaincal]
gaincal.usebeammodel=True
gaincal.solint=4
gaincal.sources=VirA
gaincal.sourcedb=VirA.sourcedb
gaincal.onebeamperpatch=True
gaincal.caltype=diagonal

L242128_SB100_uv.dppp.MS is VirA MS.

2022-06-30 10:16:38 SEVERE  MeasTable::dUTC(Double) (file /opt/lofarsoft/data/casacore-2.4.1/measures/Measures/MeasTable.cc, line 4396) Leap second table TAI_UTC seems out-of-date. 
2022-06-30 10:16:38 SEVERE  MeasTable::dUTC(Double) (file /opt/lofarsoft/data/casacore-2.4.1/measures/Measures/MeasTable.cc, line 4396)+    Until the table is updated (see the CASA documentation or your system admin),
2022-06-30 10:16:38 SEVERE  MeasTable::dUTC(Double) (file /opt/lofarsoft/data/casacore-2.4.1/measures/Measures/MeasTable.cc, line 4396)+    times and coordinates derived from UTC could be wrong by 1s or more.
tammojan commented 2 years ago

This warning has to do with the casacore measures data. Please update them, either system-wide or as a user.

The command that fixes it in our Docker container is:

wget -nv -O /WSRT_Measures.ztar ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar \
    && cd /var/lib/casacore/data \
    && tar xfz /WSRT_Measures.ztar \
    && rm /WSRT_Measures.ztar

If you don't have root access, you can download the measures data from ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar and untar it somewhere. Then in ~/.casarc, set the location to the new measures data. For example, my ~/.casarc looks like this:

measures.directory: ~/opt/casacore/data

and ~/opt/casacore/data contains the directories ephemerides and geodetic from the tarball.

You can find the location of the currently used measures data with casacores program findmeastable.