nb8. Query using astroquery

In a similar manner to the previous notebooks, it is also possible to run TAP queries using the astroquery Python package.

The very lastest version of astroquery is needed. This can be installed with:

pip3 install --upgrade --pre astroquery

You can obtain keywords, description and units of the ALMA TAP service by calling:

Example 8a: Query one object by a resolved source name and then by coordinates using TAP

This is equivalent to the queries we show in notebook 1.

Print all the target names associated with these coordinates:

Example 8b: Query one object by the ALMA source name, using the standard astroquery

As in notebook 1, querying by source name should use the name resolver, e.g. Example 8a. Only in very special occasions it can be useful to query for the source name that the PI has put into their proposal. Many sources have a large variety of different names.

Example 8c: Query one object by resolved ALMA source name, using TAP through astroquery

Similar to notebook 1, TAP can also be used for the queries through Astroquery. In SQL, the % is the special character for "any string", equivalent to * in the shell. Similarly, in SQL the _ is the special character for "any character", equivalent to ? in the shell.

The variations of the source name which include 'Cen' and 'A' are the following: