ratt-ru/QuartiCal

Cannot read leap second table TAI_UTC - `casadata` dependency for parallactic angles

Opened this issue · 6 comments

Describe the bug
QuartiCal will fail if parallactic angles are enabled on a system which doesn't have the casadata files and a properly configured .casarc as the data files will not be found. @AKHughes1994 reported this issue in #328.

To Reproduce
Run QC on a system without/with a misconfigured .casarc file.

Workaround
Download the measures data and add/update .casarc. The following is an example but be careful if .casarc already exists. You could also adjust the paths accordingly if you didn't want the data to live in ~/measures.

mkdir -p ~/measures
curl ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar | tar xvzf - -C ~/measures
echo "measures.directory: ~/measures" > ~/.casarc

Expected behavior
QuartiCal should work/provide an informative error message.

Version
Python3.10, main

If you have an example of this lying around I would be very interested. The measures stuff is the source of many headaches. I did look at both skyfield and astropy at some point, but I didn't really know how to evaluate their relative accuracy. I like skyfield but the coordinate conversion was fiddly.

We should probably completely ditch casa tooling

Yes! Yes! Yes!

See updating custom location: https://casadocs.readthedocs.io/en/stable/notebooks/external-data.html

Why they ditched a simple configuration file for a full blown python script is quite beyond me. casatools doesn't even detect standard casacore-data installed by debian anymore from my experiences updating docker tests (unless you provide the config file).