@@ -36,11 +36,11 @@ that have been approved but not observed.
36
36
>>> from astropy.coordinates import SkyCoord
37
37
>>> pos = SkyCoord.from_name(' ngc 3783' )
38
38
>>> tab = Heasarc.query_region(pos, catalog = ' numaster' )
39
- >>> tab = tab[tab[' time' ] > 0 ]
39
+ >>> tab = tab[tab[' time' ] > 0 ]
40
40
>>> tab.sort(' time' )
41
41
>>> tab[' name' , ' obsid' , ' ra' , ' dec' ][:3 ].pprint()
42
- name obsid ra dec
43
- deg deg
42
+ name obsid ra dec
43
+ deg deg
44
44
-------- ----------- -------- --------
45
45
NGC_3783 60101110002 174.7236 -37.7230
46
46
NGC_3783 60101110004 174.7253 -37.7277
@@ -58,8 +58,8 @@ we use `~astropy.units.Quantity`:
58
58
>>> tab = Heasarc.query_region(pos, catalog = ' chanmaster' , radius = 2 * u.deg)
59
59
>>> tab.sort(' time' )
60
60
>>> tab[' name' , ' obsid' , ' ra' , ' dec' ][:5 ].pprint(align = ' <' )
61
- name obsid ra dec
62
- deg deg
61
+ name obsid ra dec
62
+ deg deg
63
63
------------------------- ----- --------- --------
64
64
B2 0755+37 858 119.61750 37.78667
65
65
ABELL 611 3194 120.23708 36.05722
@@ -83,8 +83,8 @@ The list of returned columns can also be given as a comma-separated string to
83
83
>>> tab = Heasarc.query_region(pos, catalog = ' chanmaster' , radius = 2 * u.deg,
84
84
... columns= ' obsid, name, time, pi' )
85
85
>>> tab[:5 ].pprint()
86
- obsid name time pi
87
- d
86
+ obsid name time pi
87
+ d
88
88
----- ------------------------- ---------------- -------
89
89
3194 ABELL 611 52216.7805324074 Allen
90
90
858 B2 0755+37 51637.0090740741 Worrall
@@ -97,9 +97,9 @@ If you want all the columns returned, use ``columns='*'``
97
97
98
98
List Available Catalogs
99
99
-----------------------
100
- The collection of available catalogs can be obtained by calling the `~astroquery.heasarc.HeasarcClass.list_catalogs `
100
+ The collection of available catalogs can be obtained by calling the `~astroquery.heasarc.HeasarcClass.list_catalogs `
101
101
method. In this example, we query the master catalogs only by passing ``master=True ``.
102
- which is ``False `` by default (i.e. return all catalogs). `~astroquery.heasarc.HeasarcClass.list_catalogs ` returns an
102
+ which is ``False `` by default (i.e. return all catalogs). `~astroquery.heasarc.HeasarcClass.list_catalogs ` returns an
103
103
`~astropy.table.Table ` with two columns containing the names and description of the available
104
104
catalogs.
105
105
@@ -108,15 +108,15 @@ catalogs.
108
108
>>> from astroquery.heasarc import Heasarc
109
109
>>> catalogs = Heasarc.list_catalogs(master = True )
110
110
>>> catalogs.pprint(align = ' <' )
111
- name description
111
+ name description
112
112
---------- -------------------------------------------------------------
113
- ascamaster ASCA Master Catalog
114
- chanmaster Chandra Observations
113
+ ascamaster ASCA Master Catalog
114
+ chanmaster Chandra Observations
115
115
cmbmaster LAMBDA Cosmic Microwave Background Experiments Master Catalog
116
116
...
117
117
118
- If you do not know the name of the catalog you are looking for, you can use the ``keywords ``
119
- parameter in `~astroquery.heasarc.HeasarcClass.list_catalogs `. For example, if you want to find all catalogs that
118
+ If you do not know the name of the catalog you are looking for, you can use the ``keywords ``
119
+ parameter in `~astroquery.heasarc.HeasarcClass.list_catalogs `. For example, if you want to find all catalogs that
120
120
are related to Chandra, you can do:
121
121
122
122
.. doctest-remote-data ::
@@ -125,7 +125,7 @@ are related to Chandra, you can do:
125
125
>>> catalogs = Heasarc.list_catalogs(keywords = ' chandra' )
126
126
>>> # list the first 10
127
127
>>> catalogs[:10 ].pprint()
128
- name description
128
+ name description
129
129
---------- ----------------------------------------------------------------
130
130
acceptcat Archive of Chandra Cluster Entropy Profile Tables (ACCEPT) Catal
131
131
aegisx AEGIS-X Chandra Extended Groth Strip X-Ray Point Source Catalog
@@ -145,19 +145,19 @@ If you are interested only finding the master catalogs, you can also set ``maste
145
145
>>> from astroquery.heasarc import Heasarc
146
146
>>> catalog = Heasarc.list_catalogs(keywords = ' chandra' , master = True )
147
147
>>> catalog.pprint()
148
- name description
148
+ name description
149
149
---------- --------------------
150
150
chanmaster Chandra Observations
151
151
152
- Multiple keywords that are separated by space are joined with **AND **, so the
152
+ Multiple keywords that are separated by space are joined with **AND **, so the
153
153
following finds all the catalogs that have both 'xmm' and 'chandra' keywords:
154
154
155
155
.. doctest-remote-data ::
156
156
157
157
>>> from astroquery.heasarc import Heasarc
158
158
>>> catalog = Heasarc.list_catalogs(keywords = ' xmm chandra' )
159
159
>>> catalog.pprint()
160
- name description
160
+ name description
161
161
---------- ----------------------------------------------------------------
162
162
gmrt1hxcsf Giant Metrewave Radio Telescope 1h XMM/Chandra Survey Fld 610-MH
163
163
ic10xmmcxo IC 10 XMM-Newton and Chandra X-Ray Point Source Catalog
@@ -172,7 +172,7 @@ following for instance will find master catalogs that have keywords 'nicer' or '
172
172
>>> from astroquery.heasarc import Heasarc
173
173
>>> catalog = Heasarc.list_catalogs(keywords = [' nicer' , ' swift' ], master = True )
174
174
>>> catalog.pprint()
175
- name description
175
+ name description
176
176
---------- --------------------
177
177
nicermastr NICER Master Catalog
178
178
swiftmastr Swift Master Catalog
@@ -191,7 +191,7 @@ with those results.
191
191
>>> tab = tab[tab[' exposure' ] > 0 ]
192
192
>>> links = Heasarc.locate_data(tab[:2 ])
193
193
>>> links[' access_url' ].pprint()
194
- access_url
194
+ access_url
195
195
---------------------------------------------------------------------
196
196
https://heasarc.gsfc.nasa.gov/FTP/nicer/data/obs/2018_08//1100120101/
197
197
https://heasarc.gsfc.nasa.gov/FTP/nicer/data/obs/2018_08//1100120102/
@@ -216,7 +216,7 @@ before being untarred.
216
216
217
217
Advanced Queries
218
218
----------------
219
- Behind the scenes, `~astroquery.heasarc.HeasarcClass.query_region ` constructs an query in the
219
+ Behind the scenes, `~astroquery.heasarc.HeasarcClass.query_region ` constructs an query in the
220
220
Astronomical Data Query Language ADQL, which is powerful in constructing
221
221
complex queries. Passing ``get_query_payload=True `` to `~astroquery.heasarc.HeasarcClass.query_region `
222
222
returns the constructed ADQL query.
@@ -232,12 +232,12 @@ returns the constructed ADQL query.
232
232
>>> query
233
233
"SELECT * FROM xmmmaster WHERE CONTAINS(POINT('ICRS',ra,dec),CIRCLE('ICRS',120.0,38.0,2.0))=1"
234
234
>>> # The query can be modified and then submitted using:
235
- >>> query = """ SELECT ra,dec,name,obsid FROM xmmmaster
235
+ >>> query = """ SELECT ra,dec,name,obsid FROM xmmmaster
236
236
... WHERE CONTAINS(POINT(' ICRS' ,ra,dec),CIRCLE(' ICRS' ,120.0 ,38.0 ,2.0 ))= 1 """
237
237
>>> tab = Heasarc.query_tap(query).to_table()
238
238
>>> tab[:10 ].pprint()
239
- ra dec name obsid
240
- deg deg
239
+ ra dec name obsid
240
+ deg deg
241
241
--------- -------- -------------------- ----------
242
242
120.22707 36.04139 Abell 611 0781590301
243
243
120.25583 36.04944 Abell 611 0781590501
@@ -268,7 +268,7 @@ for ``'box'`` and:
268
268
>>> Heasarc.query_region(catalog = ' xmmmaster' , spatial = ' polygon' ,
269
269
polygon=[(226.2,10.6),(225.9,10.5),(225.8,10.2),(226.2,10.3)])
270
270
271
- for ``'polygon' ``.
271
+ for ``'polygon' ``.
272
272
273
273
List Catalog Columns
274
274
--------------------
@@ -281,14 +281,14 @@ in the XMM master catalog ``xmmmaster``:
281
281
>>> columns = Heasarc.list_columns(catalog_name = ' suzamaster' )
282
282
>>> columns.sort(' name' )
283
283
>>> columns[:10 ].pprint(align = ' <' )
284
- name description unit
284
+ name description unit
285
285
--------------- ---------------------------------------- ------
286
286
dec Declination (Pointing Position) degree
287
- exposure Effective Total Observation Exposure (s) s
288
- name Designation of the Pointed Source
289
- obsid Unique Observation/Sequence Number
290
- processing_date Date of Processing mjd
291
- public_date Public Date mjd
287
+ exposure Effective Total Observation Exposure (s) s
288
+ name Designation of the Pointed Source
289
+ obsid Unique Observation/Sequence Number
290
+ processing_date Date of Processing mjd
291
+ public_date Public Date mjd
292
292
ra Right Ascension (Pointing Position) degree
293
293
294
294
Reference/API
0 commit comments