-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
List tables associated to a Vizier catalogue without having to download the whole tables? #3167
Comments
You can just request the specific catalog you want instead of all catalogs associated with a publication. i.e.: viz.get_catalogs(cds_url+'/table2') |
I don't know a priori that table2 exists, that's precisely what I'm after: a list of tables (catalogues) for that url. I only have the url for the page with all the tables, which is what I obtain from NASA/ADS for example. |
You can construct the appropriate table ID from Vizier, or using astroquery, just run >>> Vizier(row_limit=1).get_catalogs('J/A+A/659/A59')
TableList with 2 tables:
'0:J/A+A/659/A59/table1' with 58 column(s) and 1 row(s)
'1:J/A+A/659/A59/table2' with 24 column(s) and 1 row(s) |
That's a clever workaround, thank you. What do you think about something like a |
I think of this as a primary use case for Actually, the documentation already shows how to do this, but possibly not in an easy to understand way: One general tip: |
Maybe that could be a note in this section? |
An example in the docs would be nice but if there's no consensus on this being a noteworthy issue, feel free to close. Thank you again! |
If I'm queriyng for exampe this catalogue in Vizier
https://vizier.cds.unistra.fr/viz-bin/VizieR?-source=J/A+A/659/A59
I'd use something like:But this
<class 'collections.OrderedDict'>
object does not contain (as far as I can see) information on the tables listed within that catalogue. In this example there are two tables, one I'm interested in and another very large one that I do not need.Apparently I can only download all the listed tables with:
cat = viz.get_catalogs(vdict)
and then select which one I want to keep?
Am I missing something or listing the tables and then selecting which table I want is not possible currently?
(Maybe related to #3144?)
The text was updated successfully, but these errors were encountered: