Skip to content

Commit 5278ff4

Browse files
committed
move time range selection to additional parameters section
1 parent 390eecf commit 5278ff4

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

docs/heasarc/heasarc.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,6 @@ coordinates:
5858
Note that the :meth:`~astroquery.heasarc.HeasarcClass.query_region` converts
5959
the passed coordinates to the FK5 reference frame before submitting the query.
6060

61-
It is also possible to select time range:
62-
63-
.. code-block:: python
64-
65-
>>> from astroquery.heasarc import Heasarc
66-
>>> heasarc = Heasarc()
67-
>>> table = heasarc.query_region('3C273', mission="numaster", radius='1 degree', time='2019-01-01 .. 2020-01-01')
68-
>>> table.pprint()
69-
NAME RA DEC TIME OBSID STATUS EXPOSURE_A OBSERVATION_MODE OBS_TYPE PROCESSING_DATE PUBLIC_DATE ISSUE_FLAG SEARCH_OFFSET_
70-
DEGREE DEGREE MJD S MJD MJD
71-
----- -------- ------ ---------------- ----------- -------- ---------- ---------------- -------- ---------------- ----------- ---------- ---------------------------------------------
72-
3C273 187.2473 2.0362 58666.3272 10502620002 ARCHIVED 49410 SCIENCE CAL 59054.3142 58677 0 2.077 (187.2779215031367,2.0523867628597445)
73-
7461
Modifying returned table columns
7562
--------------------------------
7663

@@ -165,6 +152,20 @@ returned. The following will store only the first 10 results:
165152
166153
All of the above parameters can be mixed and matched to refine the query results.
167154

155+
It is also possible to select time range:
156+
157+
.. code-block:: python
158+
159+
>>> from astroquery.heasarc import Heasarc
160+
>>> heasarc = Heasarc()
161+
>>> table = heasarc.query_region('3C273', mission="numaster", radius='1 degree', time='2019-01-01 .. 2020-01-01')
162+
>>> table.pprint()
163+
NAME RA DEC TIME OBSID STATUS EXPOSURE_A OBSERVATION_MODE OBS_TYPE PROCESSING_DATE PUBLIC_DATE ISSUE_FLAG SEARCH_OFFSET_
164+
DEGREE DEGREE MJD S MJD MJD
165+
----- -------- ------ ---------------- ----------- -------- ---------- ---------------- -------- ---------------- ----------- ---------- ---------------------------------------------
166+
3C273 187.2473 2.0362 58666.3272 10502620002 ARCHIVED 49410 SCIENCE CAL 59054.3142 58677 0 2.077 (187.2779215031367,2.0523867628597445)
167+
168+
168169
Getting list of available missions
169170
----------------------------------
170171

0 commit comments

Comments
 (0)