@@ -27,15 +27,12 @@ an object by name:
27
27
>>> object_name = ' 3c273'
28
28
>>> table = heasarc.query_object(object_name, mission = mission)
29
29
>>> table[:3 ].pprint(max_width = 120 )
30
- SEQ_ID INSTRUMENT EXPOSURE NAME RA DEC START_TIME END_TIME SEARCH_OFFSET_
31
- S DEGREE DEGREE MJD MJD
32
- ----------- ---------- -------- -------------------- -------- ------ ---------------- ---------------- ---------------
33
- RH701576N00 HRI 68154 3C 273 187.2800 2.0500 49704.3090856482 49724.6236226852 0.190 (3C273)
34
- <BLANKLINE>
35
- RP600242A01 PSPCB 24822 GIOVANELLI-HAYNES CL 186.9300 1.6000 48980.6468865741 48982.9284837963 34.236 (3C273)
36
- <BLANKLINE>
37
- RH700234N00 HRI 17230 3C 273 187.2800 2.0500 48629.2693055556 48632.4716782407 0.190 (3C273)
38
- <BLANKLINE>
30
+ SEQ_ID INSTRUMENT EXPOSURE NAME ... DEC START_TIME END_TIME SEARCH_OFFSET_
31
+ s ... deg mjd mjd
32
+ ---------------- ---------- -------- -------------------- ... ------ ---------------- ---------------- ----------------
33
+ RH701576N00 HRI 68154 3C 273 ... 2.0500 49704.3090856482 49724.6236226852 0.190 (3c273)\n
34
+ RP600242A01 PSPCB 24822 GIOVANELLI-HAYNES CL ... 1.6000 48980.6468865741 48982.9284837963 34.236 (3c273)\n
35
+ RH700234N00 HRI 17230 3C 273 ... 2.0500 48629.2693055556 48632.4716782407 0.190 (3c273)\n
39
36
40
37
Alternatively, a query can also be conducted around a specific set of sky
41
38
coordinates:
@@ -49,15 +46,12 @@ coordinates:
49
46
>>> coords = SkyCoord(' 12h29m06.70s +02d03m08.7s' , frame = ' icrs' )
50
47
>>> table = heasarc.query_region(coords, mission = mission, radius = ' 1 degree' )
51
48
>>> table[:3 ].pprint(max_width = 120 )
52
- SEQ_ID INSTRUMENT EXPOSURE ... START_TIME END_TIME SEARCH_OFFSET_
53
- S ... MJD MJD
54
- ----------- ---------- -------- ... ---------------- ---------------- ----------------------------------------------
55
- RH701576N00 HRI 68154 ... 49704.3090856482 49724.6236226852 0.191 (187.2779228198005,2.0524148595265435)
56
- <BLANKLINE>
57
- RP600242A01 PSPCB 24822 ... 48980.6468865741 48982.9284837963 34.237 (187.2779228198005,2.0524148595265435)
58
- <BLANKLINE>
59
- RH700234N00 HRI 17230 ... 48629.2693055556 48632.4716782407 0.191 (187.2779228198005,2.0524148595265435)
60
- <BLANKLINE>
49
+ SEQ_ID INSTRUMENT EXPOSURE ... START_TIME END_TIME SEARCH_OFFSET_
50
+ s ... mjd mjd
51
+ ---------------- ---------- -------- ... ---------------- ---------------- --------------------------------------
52
+ RH701576N00 HRI 68154 ... 49704.3090856482 49724.6236226852 0.191 (187.2779228198,2.0524148595)\n
53
+ RP600242A01 PSPCB 24822 ... 48980.6468865741 48982.9284837963 34.237 (187.2779228198,2.0524148595)\n
54
+ RH700234N00 HRI 17230 ... 48629.2693055556 48632.4716782407 0.191 (187.2779228198,2.0524148595)\n
61
55
62
56
Note that the :meth: `~astroquery.heasarc.HeasarcClass.query_region ` converts
63
57
the passed coordinates to the FK5 reference frame before submitting the query.
@@ -82,14 +76,12 @@ specify which columns will be returned:
82
76
83
77
>>> table = heasarc.query_object(object_name = ' 3c273' , mission = ' rosmaster' , fields = ' EXPOSURE,RA,DEC' )
84
78
>>> table[:3 ].pprint()
85
- EXPOSURE RA DEC SEARCH_OFFSET_
86
- S DEGREE DEGREE
87
- -------- -------- ------ ---------------
88
- 68154 187.2800 2.0500 0.190 (3C273)
89
- <BLANKLINE>
90
- 24822 186.9300 1.6000 34.236 (3C273)
91
- <BLANKLINE>
92
- 17230 187.2800 2.0500 0.190 (3C273)
79
+ EXPOSURE RA DEC SEARCH_OFFSET_
80
+ s deg deg
81
+ -------- -------- ------ ----------------
82
+ 68154 187.2800 2.0500 0.190 (3c273)\n
83
+ 24822 186.9300 1.6000 34.236 (3c273)\n
84
+ 17230 187.2800 2.0500 0.190 (3c273)\n
93
85
94
86
Note that the ``SEARCH_OFFSET_ `` column will always be included in the results.
95
87
If a column name is passed to the ``fields `` parameter which does not exist in
@@ -141,15 +133,12 @@ parameter. The following sorts the results by the value in the 'EXPOSURE' column
141
133
142
134
>>> table = heasarc.query_object(object_name, mission = ' rosmaster' , sortvar = ' EXPOSURE' )
143
135
>>> table[:3 ].pprint()
144
- SEQ_ID INSTRUMENT EXPOSURE ... END_TIME SEARCH_OFFSET_
145
- S ... MJD
146
- ----------- ---------- -------- ... ---------------- ---------------
147
- RH120001N00 HRI 0 ... 48079.8913773148 0.496 (3C273)
148
- <BLANKLINE>
149
- RH701979N00 HRI 354 ... 49726.0977083333 0.190 (3C273)
150
- <BLANKLINE>
151
- RP141520N00 PSPCB 485 ... 49540.0447569444 0.496 (3C273)
152
- <BLANKLINE>
136
+ SEQ_ID INSTRUMENT EXPOSURE ... END_TIME SEARCH_OFFSET_
137
+ s ... mjd
138
+ ---------------- ---------- -------- ... ---------------- ----------------
139
+ RH120001N00 HRI 0 ... 48079.8913773148 0.496 (3c273)\n
140
+ RH701979N00 HRI 354 ... 49726.0977083333 0.190 (3c273)\n
141
+ RP141520N00 PSPCB 485 ... 49540.0447569444 0.496 (3c273)\n
153
142
154
143
Setting the ``resultmax `` parameter controls the maximum number of results to be
155
144
returned. The following will store only the first 10 results:
@@ -167,12 +156,11 @@ It is also possible to select time range:
167
156
>>> from astroquery.heasarc import Heasarc
168
157
>>> heasarc = Heasarc()
169
158
>>> table = heasarc.query_region(' 3C273' , mission = " numaster" , radius = ' 1 degree' , time = ' 2019-01-01 .. 2020-01-01' )
170
- >>> table.pprint()
171
- NAME RA ... ISSUE_FLAG SEARCH_OFFSET_
172
- DEGREE ...
173
- ----- -------- ... ---------- ----------------------------------------------
174
- 3C273 187.2473 ... 0 2.077 (187.27792209362673,2.0523864234098044)
175
- <BLANKLINE>
159
+ >>> table.pprint(max_width = 120 )
160
+ NAME RA DEC ... ISSUE_FLAG SEARCH_OFFSET_
161
+ deg deg ...
162
+ -------------------------------------------------- -------- ------ ... ---------- -------------------------------------
163
+ 3C273 187.2473 2.0362 ... 0 2.077 (187.2779220931,2.0523864229)\n
176
164
177
165
178
166
Getting list of available missions
0 commit comments