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

ENH: have a way to list collections for query_sia #2940

Closed
bsipocz opened this issue Feb 1, 2024 · 1 comment · Fixed by #2952
Closed

ENH: have a way to list collections for query_sia #2940

bsipocz opened this issue Feb 1, 2024 · 1 comment · Fixed by #2952
Milestone

Comments

@bsipocz
Copy link
Member

bsipocz commented Feb 1, 2024

E.g. in the Irsa module we have a list_catalogs, but it returns the TAP schemas rather than what the collection keyword for SIA would expect (e.g. spitzer.seip_images vs spitzer_seip)

(This is me trying to figure out how to e.g. query for WISE images from a user's POV who doesn't know the collection name already, etc.)

@bsipocz
Copy link
Member Author

bsipocz commented Feb 1, 2024

Ways to do this:

the most up-to-date way to find a list of SIAv2 collections is by calling https://irsa.ipac.caltech.edu/SIA?maxrec=0&responseformat=votable and looking at  values of the COLLECTION param.
https://irsa.ipac.caltech.edu/TAP/sync?QUERY=select%20distinct%20collection%20from%20caom.observation%20order%20by%20collection&format=html

where we do have it cached for HTML, ipac table and json, but it will need astropy/pyvo#524 to be able to do so in astroquery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant