Skip to content

Commit f761d9e

Browse files
committed
example usage of new tables
1 parent 85513e0 commit f761d9e

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

docs/heasarc/heasarc.rst

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,41 @@ Using alternative HEASARC servers
193193
---------------------------------
194194

195195
It is possible to set alternative locations for HEASARC server. One such location
196-
is hosted by `INTEGRAL Science Data Center <https://www.isdc.unige.ch/>`_, and has further,
197-
more recent, tables relevant for INTEGRAL spacecraft.
196+
is hosted by `INTEGRAL Science Data Center <https://www.isdc.unige.ch/>`_, and has further
197+
tables listing most recent INTEGRAL data.
198198

199199
.. code-block:: python
200200
201-
import astroquery
202-
astroquery.heasarc.Conf.server.set('https://www.isdc.unige.ch/browse/w3query.pl')
203-
201+
>>> from astroquery.heasarc import Heasarc, Conf
202+
>>> heasarc = Heasarc()
203+
>>> Conf.server.set('https://www.isdc.unige.ch/browse/w3query.pl')
204+
>>> table = heasarc.query_mission_list()
205+
>>> table.pprint()
206+
Mission Table Table Description
207+
------------- ---------------------- -----------------------------------------------
208+
CTASST1M-REV1 cta_sst1m_rev1_run Run
209+
FACT-REV1 fact_rev1_run Run
210+
INTEGRAL-REV3 integral_rev3_prop Proposals
211+
INTEGRAL-REV3 integral_rev3_prop_obs Proposal Information and Observation Parameters
212+
INTEGRAL-REV3 integral_rev3_scw SCW - Science Window Data
213+
214+
>>> table = heasarc.query_object(
215+
'Crab',
216+
mission='integral_rev3_scw',
217+
radius='361 degree',
218+
time="2021-02-01 .. 2030-12-01",
219+
resultmax=100000
220+
)
221+
>>> table.pprint(max_lines=10)
222+
SCW_ID SCW_VER SCW_TYPE RA_X DEC_X START_DATE END_DATE OBS_ID ... GOOD_ISGRI GOOD_JEMX GOOD_JEMX1 GOOD_JEMX2 GOOD_OMC DSIZE _SEARCH_OFFSET
223+
ISO ISO ...
224+
------------ ------- -------- ---------- ---------- ------------------- ------------------- ----------- ... ---------- --------- ---------- ---------- -------- --------- --------------
225+
232600870020 001 POINTING 48.302208 17.841444 2021-02-01 00:44:06 2021-02-01 02:35:06 18200040005 ... 171 0 0 0 370 20242432 2004.207
226+
232600870031 001 SLEW 47.182667 5.709550 2021-02-01 02:35:06 2021-02-01 02:45:48 ... 0 0 0 0 0 1380352 2328.123
227+
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
228+
236100790021 001 SLEW 145.884599 72.135748 2021-05-05 02:46:32 2021-05-05 02:48:45 18200120001 ... 133 133 132 133 0 6934528 3642.794
229+
236100800010 001 POINTING 145.303131 71.057442 2021-05-05 02:48:45 2021-05-05 03:47:39 18200120001 ... 3503 1024 1022 1024 3502 150392832 3610.480
230+
236100800020 001 POINTING 145.303085 71.057442 2021-05-05 03:47:39 2021-05-05 05:12:46 18200120001 ... 97 0 0 0 90 7905280 3610.479
204231
205232
206233
Downloading identified datasets

0 commit comments

Comments
 (0)