IrsaClass¶
- class astroquery.ipac.irsa.IrsaClass[source]¶
Bases:
BaseVOQueryAttributes Summary
Methods Summary
list_catalogs([full, cache])Return information of available IRSA catalogs.
query_region([coordinates, catalog, ...])Queries the IRSA TAP server around a coordinate and returns a
Tableobject.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.
- 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
Tableobject.- Parameters:
- coordinatesstr,
astropy.coordinatesobject 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
Quantityobject, [optional for spatial is'Cone'] The string must be parsable by
Angle. The appropriateQuantityobject fromastropy.unitsmay also be used. Defaults to 10 arcsec.- widthstr,
Quantityobject [Required for spatial is'Box'.] The string must be parsable by
Angle. The appropriateQuantityobject fromastropy.unitsmay 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 ofastropy.coordinatesobject or strings that can be parsed byastropy.coordinates.ICRS.- get_query_payloadbool, optional
If
Truethen returns the dictionary sent as the HTTP request. Defaults toFalse.- columnsstr, optional
Target column list with value separated by a comma(,)
- coordinatesstr,
- Returns:
- tableA
Tableobject.
- tableA
- query_tap(query, *, maxrec=None)[source]¶
Send query to IRSA TAP. Results in
TAPResultsformat. result.to_qtable inQTableformat- Parameters:
- querystr
ADQL query to be executed
- maxrecint
maximum number of records to return
- Returns:
- result
TAPResults TAP query result.
- result.to_table
Table TAP query result as
Table- result.to_qtable
QTable TAP query result as
QTable
- result