11
11
from astropy .coordinates import SkyCoord
12
12
from astropy import units as u
13
13
from astropy .utils .decorators import deprecated_renamed_argument
14
- from pyvo .dal . tap import TAPService
14
+ from pyvo .dal import TAPService
15
15
from astroquery import log
16
16
from astroquery .query import BaseQuery
17
17
from astroquery .utils .commons import parse_coordinates
@@ -37,7 +37,7 @@ def tap(self):
37
37
38
38
def query_tap (self , query , * , maxrec = None ):
39
39
"""
40
- Send query to IRSA TAP. Results in `~pyvo.dal.TapResult ` format.
40
+ Send query to IRSA TAP. Results in `~pyvo.dal.TAPResults ` format.
41
41
result.to_qtable in `~astropy.table.QTable` format
42
42
43
43
Parameters
@@ -47,9 +47,9 @@ def query_tap(self, query, *, maxrec=None):
47
47
maxrec : int
48
48
maximum number of records to return
49
49
50
- Return
51
- ------
52
- result : `~pyvo.dal.TapResult `
50
+ Returns
51
+ -------
52
+ result : `~pyvo.dal.TAPResults `
53
53
TAP query result.
54
54
result.to_table : `~astropy.table.Table`
55
55
TAP query result as `~astropy.table.Table`
@@ -66,23 +66,17 @@ def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
66
66
get_query_payload = False , columns = None ,
67
67
verbose = False , cache = True ):
68
68
"""
69
- This function serves the same purpose as
70
- :meth:`~astroquery.ipac.irsa.IrsaClass.query_region`, but returns the raw
71
- HTTP response rather than the results in a `~astropy.table.Table`.
69
+ Queries the IRSA TAP server around a coordinate and returns a `~astropy.table.Table` object.
72
70
73
71
Parameters
74
72
----------
75
73
coordinates : str, `astropy.coordinates` object
76
- Gives the position of the center of the cone or box if
77
- performing a cone or box search. The string can give coordinates
78
- in various coordinate systems, or the name of a source that will
79
- be resolved on the server (see `here
80
- <https://irsa.ipac.caltech.edu/search_help.html>`_ for more
81
- details). Required if spatial is ``'Cone'`` or ``'Box'``. Optional
82
- if spatial is ``'Polygon'`` or ``'All-Sky'``.
74
+ Gives the position of the center of the cone or box if performing a cone or box search.
75
+ Required if spatial is ``'Cone'`` or ``'Box'``. Ignored if spatial is ``'Polygon'`` or
76
+ ``'All-Sky'``.
83
77
catalog : str
84
78
The catalog to be used. To list the available catalogs, use
85
- :meth:`~astroquery.ipac.irsa.IrsaClass.print_catalogs `.
79
+ :meth:`~astroquery.ipac.irsa.IrsaClass.list_catalogs `.
86
80
spatial : str
87
81
Type of spatial query: ``'Cone'``, ``'Box'``, ``'Polygon'``, and
88
82
``'All-Sky'``. Defaults to ``'Cone'``.
@@ -107,6 +101,7 @@ def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
107
101
108
102
Returns
109
103
-------
104
+ table : A `~astropy.table.Table` object.
110
105
"""
111
106
if catalog is None :
112
107
raise InvalidQueryError ("Catalog name is required!" )
0 commit comments