1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.irsa :
4
2
5
3
********************************
@@ -26,10 +24,10 @@ the catalog in the IRSA database, on which the query must be performed. To take
26
24
a look at all the available catalogs:
27
25
28
26
.. code-block :: python
27
+ .. doctest-remote-data ::
29
28
30
29
>>> from astroquery.irsa import Irsa
31
- >> > Irsa.list_catalogs()
32
-
30
+ >>> Irsa.list_catalogs() # doctest: +IGNORE_OUTPUT
33
31
{'a1763t2': 'Abell 1763 Source Catalog',
34
32
'a1763t3': 'Abell 1763 MIPS 70 micron Catalog',
35
33
'acs_iphot_sep07': 'COSMOS ACS I-band photometry catalog September 2007',
@@ -44,10 +42,10 @@ This returns a dictionary of catalog names with their description. If you would
44
42
rather just print out this information:
45
43
46
44
.. code-block :: python
45
+ .. doctest-remote-data ::
47
46
48
47
>>> from astroquery.irsa import Irsa
49
- >> > Irsa.print_catalogs()
50
-
48
+ >>> Irsa.print_catalogs() # doctest: +IGNORE_OUTPUT
51
49
wise_allsky_2band_p1bm_frm WISE Post-Cryo Single Exposure (L1b) Image Inventory Table
52
50
wise_allsky_4band_p3as_psr WISE All-Sky Reject Table
53
51
cosmos_morph_col_1 COSMOS Zamojski Morphology Catalog v1.0
@@ -69,13 +67,13 @@ any appropriate unit using a `~astropy.units.Quantity` object. It may also be
69
67
entered as a string that is parsable by `~astropy.coordinates.Angle `.
70
68
71
69
.. code-block :: python
70
+ .. doctest-remote-data ::
72
71
73
72
>>> from astroquery.irsa import Irsa
74
73
>>> import astropy.units as u
75
74
>>> table = Irsa.query_region(" m31" , catalog = " fp_psc" , spatial = " Cone" ,
76
75
... radius= 2 * u.arcmin)
77
76
>>> print (table)
78
-
79
77
ra dec clon clat err_maj ... j_h h_k j_k id
80
78
------- ------- ------------ ------------ ------- ... ----- ------ ------ ---
81
79
10.685 41.248 00h42m44.45s 41d14m52.56s 0.14 ... 1.792 -0.821 0.971 0
@@ -103,14 +101,15 @@ name. The coordinates can be specified using the appropriate
103
101
a string, as specified by `astropy.coordinates `:
104
102
105
103
.. code-block :: python
104
+ .. doctest-remote-data ::
106
105
107
106
>>> from astroquery.irsa import Irsa
108
107
>>> import astropy.coordinates as coord
109
108
>>> table = Irsa.query_region(coord.SkyCoord(121.1743 ,
110
109
... - 21.5733 , unit= (u.deg,u.deg),
111
110
... frame= ' galactic' ),
112
111
... catalog= ' fp_psc' , radius= ' 0d2m0s' )
113
- >> > print (table)
112
+ >>> print (table) # doctest: +IGNORE_OUTPUT
114
113
115
114
Performing a box search
116
115
-----------------------
@@ -122,16 +121,15 @@ for cone search queries, above - so it may be set using the appropriate
122
121
`~astropy.units.Quantity ` object or a string parsable by `~astropy.coordinates.Angle `.
123
122
124
123
.. code-block :: python
124
+ .. doctest-remote-data ::
125
125
126
126
>>> from astroquery.irsa import Irsa
127
127
>>> import astropy.units as u
128
128
>>> table = Irsa.query_region(" 00h42m44.330s +41d16m07.50s" ,
129
129
... catalog= ' fp_psc' , spatial= ' Box' ,
130
130
... width= 5 * u.arcsec)
131
-
132
131
WARNING: Coordinate string is being interpreted as an ICRS
133
132
coordinate. [astroquery.irsa.core]
134
-
135
133
>>> print (table)
136
134
137
135
ra dec clon clat err_maj ... j_h h_k j_k id
@@ -157,6 +155,7 @@ tuples, each tuple containing the ra and dec values in degrees. Each of these
157
155
options is illustrated below:
158
156
159
157
.. code-block :: python
158
+ .. doctest-remote-data ::
160
159
161
160
>>> from astroquery.irsa import Irsa
162
161
>>> from astropy import coordinates
@@ -166,7 +165,6 @@ options is illustrated below:
166
165
... coordinates.SkyCoord(ra = 10.0 , dec = 10.0 , unit = (u.deg, u.deg), frame = ' icrs' )
167
166
... ])
168
167
>>> print (table)
169
-
170
168
ra dec clon clat err_maj ... j_h h_k j_k id
171
169
------- ------- ------------ ------------ ------- ... ----- ----- ----- ---
172
170
10.016 10.099 00h40m03.77s 10d05m57.22s 0.1 ... 0.602 0.154 0.756 0
@@ -181,12 +179,12 @@ Another way to specify the polygon is directly as a list of tuples - each tuple
181
179
is an ra, dec pair expressed in degrees:
182
180
183
181
.. code-block :: python
182
+ .. doctest-remote-data ::
184
183
185
184
>>> from astroquery.irsa import Irsa
186
185
>>> table = Irsa.query_region(" m31" , catalog = " fp_psc" , spatial = " Polygon" ,
187
186
... polygon = [(10.1 , 10.1 ), (10.0 , 10.1 ), (10.0 , 10.0 )])
188
187
>>> print (table)
189
-
190
188
ra dec clon clat err_maj ... j_h h_k j_k id
191
189
------- ------- ------------ ------------ ------- ... ----- ----- ----- ---
192
190
10.016 10.099 00h40m03.77s 10d05m57.22s 0.1 ... 0.602 0.154 0.756 0
@@ -205,11 +203,11 @@ The IRSA service allows to query either a subset of the default columns for a gi
205
203
An example where the AllWISE Source Catalog needs to be queried around the star HIP 12 with just the ra, dec and w1mpro columns would be:
206
204
207
205
.. code-block :: python
206
+ .. doctest-remote-data ::
208
207
209
208
>>> from astroquery.irsa import Irsa
210
209
>>> table = Irsa.query_region(" HIP 12" , catalog = " allwise_p3as_psd" , spatial = " Cone" , selcols = " ra,dec,w1mpro" )
211
210
>>> print (table)
212
-
213
211
ra dec clon clat w1mpro dist angle id
214
212
deg deg mag arcsec deg
215
213
------- ------- ------------ ------------- ------ -------- ---------- ---
@@ -227,13 +225,13 @@ is written in ``ascii.ipac`` or ``ascii.csv`` formats. The ``.format`` attribute
227
225
individual columns may be set to increase the precision.
228
226
229
227
.. code-block :: python
228
+ .. doctest-remote-data ::
230
229
231
230
>>> from astroquery.irsa import Irsa
232
231
>>> table = Irsa.query_region(" HIP 12" , catalog = " allwise_p3as_psd" , spatial = " Cone" , selcols = " ra,dec,w1mpro" )
233
232
>>> table[' ra' ].format = ' {:10.6f } '
234
233
>>> table[' dec' ].format = ' {:10.6f } '
235
234
>>> print (table)
236
-
237
235
ra dec clon clat w1mpro dist angle id
238
236
deg deg mag arcs deg
239
237
----------- ----------- ------------ ------------- ------ -------- ---------- ---
0 commit comments