Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JSKenyon opened this issue Feb 28, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@JSKenyon
Copy link
Collaborator

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

@JSKenyon JSKenyon changed the title casadata dependency for parallactic angles Cannot read leap second table TAI_UTC - casadata dependency for parallactic angles Feb 28, 2024
@JSKenyon JSKenyon added the bug Something isn't working label Feb 28, 2024
@JSKenyon JSKenyon self-assigned this Feb 28, 2024
@bennahugo
Copy link
Collaborator

bennahugo commented Feb 28, 2024 via email

@JSKenyon
Copy link
Collaborator Author

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.

@o-smirnov
Copy link
Collaborator

We should probably completely ditch casa tooling

Yes! Yes! Yes!

@JSKenyon
Copy link
Collaborator Author

See skyfielders/python-skyfield#819 for reference.

@bennahugo
Copy link
Collaborator

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants