Skip to content

Commit ca07e4b

Browse files
committed
Update heasarc.rst -- adding relevant information regarding issue #3387
Update CHANGES.rst -- removed changelog entry (not needed) Update heasarc.rst -- removed xref (not needed)
1 parent 822ecf0 commit ca07e4b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/heasarc/heasarc.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,23 @@ for ``'box'`` and:
268268
>>> Heasarc.query_region(catalog='xmmmaster', spatial='polygon',
269269
polygon=[(226.2,10.6),(225.9,10.5),(225.8,10.2),(226.2,10.3)])
270270

271-
for ``'polygon'``.
271+
for ``'polygon'``. For ``'all-sky'``:
272+
273+
.. doctest-skip::
274+
275+
>>> Heasarc.query_region(pos, spatial='all-sky', catalog='csc', maxrec=None)
276+
277+
though you may find that maxrec has a hard limit of 1e5 regardless of how you set it.
278+
279+
In this case one can do instead:
280+
281+
.. doctest-skip::
282+
283+
>>> # get a comma-separated list of the default columns in csc.
284+
>>> columns = ', '.join(Heasarc._get_default_columns('csc'))
285+
>>> # construct a query for all entries; use TOP with a large number greater than the server's 1e5 LIMIT
286+
>>> query = f'SELECT TOP 9999999 {columns} FROM csc'
287+
>>> Heasarc.query_tap(query).to_table()
272288

273289
List Catalog Columns
274290
--------------------

0 commit comments

Comments
 (0)