Skip to content

Commit cf385c7

Browse files
committed
DOC: adding async docs
1 parent 2f97dab commit cf385c7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/ipac/irsa/irsa.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,21 @@ star HIP 12 with just the ra, dec and w1mpro columns would be:
183183
--------- ----------- ------
184184
0.0407905 -35.9602605 4.837
185185

186+
Async queries
187+
--------------
188+
189+
For bigger queries it is recommended using the ``async_mode`` keyword option. When used,
190+
the query is send in asyncronous mode.
191+
192+
.. doctest-remote-data::
193+
194+
>>> from astroquery.ipac.irsa import Irsa
195+
>>> table = Irsa.query_region("HIP 12", catalog="allwise_p3as_psd", spatial="Cone", async_mode=True)
196+
>>> print(table)
197+
designation ra dec sigra ... y z spt_ind htm20
198+
deg deg arcsec ...
199+
------------------- --------- ----------- ------ ... ------------------ ------------------- --------- -------------
200+
J000009.78-355736.9 0.0407905 -35.9602605 0.0454 ... 0.0005762523295116 -0.5872239888098030 100102010 8873706189183
186201

187202
Direct TAP query to the IRSA server
188203
-----------------------------------

0 commit comments

Comments
 (0)