IrsaClass

class astroquery.ipac.irsa.IrsaClass[source]

Bases: BaseVOQuery

Attributes Summary

tap

Methods Summary

list_catalogs([full, cache])

Return information of available IRSA catalogs.

print_catalogs()

query_region([coordinates, catalog, ...])

Queries the IRSA TAP server around a coordinate and returns a Table object.

query_tap(query, *[, maxrec])

Send query to IRSA TAP.

Attributes Documentation

tap

Methods Documentation

list_catalogs(full=False, cache=False)[source]

Return information of available IRSA catalogs.

Parameters:
fullbool

If True returns the full schema VOTable. If False returns a dictionary of the table names and their description.

print_catalogs()[source]
query_region(coordinates=None, *, catalog=None, spatial='Cone', radius=<Quantity 10. arcsec>, width=None, polygon=None, get_query_payload=False, columns=None, verbose=False, cache=True)[source]

Queries the IRSA TAP server around a coordinate and returns a Table object.

Parameters:
coordinatesstr, astropy.coordinates object

Gives the position of the center of the cone or box if performing a cone or box search. Required if spatial is 'Cone' or 'Box'. Ignored if spatial is 'Polygon' or 'All-Sky'.

catalogstr

The catalog to be used. To list the available catalogs, use list_catalogs().

spatialstr

Type of spatial query: 'Cone', 'Box', 'Polygon', and 'All-Sky'. Defaults to 'Cone'.

radiusstr or Quantity object, [optional for spatial is 'Cone']

The string must be parsable by Angle. The appropriate Quantity object from astropy.units may also be used. Defaults to 10 arcsec.

widthstr, Quantity object [Required for spatial is 'Box'.]

The string must be parsable by Angle. The appropriate Quantity object from astropy.units may also be used.

polygonlist, [Required for spatial is 'Polygon']

A list of (ra, dec) pairs (as tuples), in decimal degrees, outlining the polygon to search in. It can also be a list of astropy.coordinates object or strings that can be parsed by astropy.coordinates.ICRS.

get_query_payloadbool, optional

If True then returns the dictionary sent as the HTTP request. Defaults to False.

columnsstr, optional

Target column list with value separated by a comma(,)

Returns:
tableA Table object.
query_tap(query, *, maxrec=None)[source]

Send query to IRSA TAP. Results in TAPResults format. result.to_qtable in QTable format

Parameters:
querystr

ADQL query to be executed

maxrecint

maximum number of records to return

Returns:
resultTAPResults

TAP query result.

result.to_tableTable

TAP query result as Table

result.to_qtableQTable

TAP query result as QTable