@@ -22,19 +22,17 @@ specified in any appropriate unit, however it must fall in the range of 2 to
22
22
37.5 degrees.
23
23
24
24
.. code-block :: python
25
+ .. doctest-remote-data ::
25
26
26
27
>>> from astroquery.irsa_dust import IrsaDust
27
28
>>> image_list = IrsaDust.get_images(" m81" )
28
-
29
29
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_pdTImE_1525/DUST/m81.v0001/p414Dust.fits
30
30
|===========================================| 331k/331k (100.00%) 15s
31
31
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_pdTImE_1525/DUST/m81.v0001/p414i100.fits
32
32
|===========================================| 331k/331k (100.00%) 13s
33
33
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_pdTImE_1525/DUST/m81.v0001/p414temp.fits
34
34
|===========================================| 331k/331k (100.00%) 05s
35
-
36
- >> > image_list
37
-
35
+ >>> image_list # doctest: +IGNORE_OUTPUT
38
36
[[<astropy.io.fits.hdu.image.PrimaryHDU at 0x39b8610>],
39
37
[<astropy.io.fits.hdu.image.PrimaryHDU at 0x39b8bd0>],
40
38
[<astropy.io.fits.hdu.image.PrimaryHDU at 0x39bd8d0>]]
@@ -47,39 +45,36 @@ to the :meth:`~astroquery.irsa_dust.IrsaDustClass.get_images` method. It can tak
47
45
images:
48
46
49
47
.. code-block :: python
48
+ .. doctest-remote-data ::
50
49
51
50
>>> from astroquery.irsa_dust import IrsaDust
52
51
>>> import astropy.units as u
53
52
>>> image = IrsaDust.get_images(" m81" , image_type = " 100um" ,
54
53
... radius= 2 * u.deg)
55
-
56
54
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_007Vob_24557/DUST/m81.v0001/p414i100.fits
57
55
|===========================================| 149k/149k (100.00%) 02s
58
-
59
-
60
56
>>> image
61
-
62
- [[< astropy.io.fits.hdu.image.PrimaryHDU at 0x 3a5a650> ]]
57
+ [[<astropy.io.fits.hdu.image.PrimaryHDU at 0x3a5a650>]] # doctest: +IGNORE_OUTPUT
63
58
64
59
The image types that are available can also be listed out any time:
65
60
66
61
.. code-block :: python
62
+ .. doctest-remote-data ::
67
63
68
64
>>> from astroquery.irsa_dust import IrsaDust
69
65
>>> IrsaDust.list_image_types()
70
-
71
66
['ebv', 'temperature', '100um']
72
67
73
68
The target may also be specified via coordinates passed as strings. Examples of acceptable coordinate
74
69
strings can be found on this `IRSA DUST coordinates description page `_.
75
70
76
71
.. code-block :: python
72
+ .. doctest-remote-data ::
77
73
78
74
>>> from astroquery.irsa_dust import IrsaDust
79
75
>>> import astropy.coordinates as coord
80
76
>>> import astropy.units as u
81
77
>>> image_list = IrsaDust.get_images(" 17h44m34s -27d59m13s" , radius = 2.0 * u.deg)
82
-
83
78
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_46IWzq_9460/DUST/17h44m34s_-27d59m13s.v0001/p118Dust.fits
84
79
|==============================| 57k/ 57k (100.00%) 00s
85
80
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_46IWzq_9460/DUST/17h44m34s_-27d59m13s.v0001/p118i100.fits
@@ -94,14 +89,14 @@ supports the ``image_type`` argument, in the same way as described for
94
89
:meth: `~astroquery.irsa_dust.IrsaDustClass.get_images `.
95
90
96
91
.. code-block :: python
92
+ .. doctest-remote-data ::
97
93
98
94
>>> from astroquery.irsa_dust import IrsaDust
99
95
>>> import astropy.coordinates as coord
100
96
>>> import astropy.units as u
101
97
>>> coo = coord.SkyCoord(34.5565 * u.deg, 54.2321 * u.deg, frame = ' galactic' )
102
98
>>> image_urls = IrsaDust.get_image_list(coo)
103
99
>>> image_urls
104
-
105
100
['http://irsa.ipac.caltech.edu//workspace/TMP_gB3awn_6492/DUST/34.5565_54.2321_gal.v0001/p292Dust.fits',
106
101
'http://irsa.ipac.caltech.edu//workspace/TMP_gB3awn_6492/DUST/34.5565_54.2321_gal.v0001/p292i100.fits',
107
102
'http://irsa.ipac.caltech.edu//workspace/TMP_gB3awn_6492/DUST/34.5565_54.2321_gal.v0001/p292temp.fits']
@@ -114,19 +109,17 @@ the queries discussed above, namely the target string and optionally a radius
114
109
value:
115
110
116
111
.. code-block :: python
112
+ .. doctest-remote-data ::
117
113
118
114
>>> from astroquery.irsa_dust import IrsaDust
119
115
>>> import astropy.coordinates as coord
120
116
>>> import astropy.units as u
121
117
>>> # "22h57m57.5s +26d09m00.09s Equatorial B1950"
122
118
>>> coo = coord.SkyCoord(" 22h57m57.5s +26d09m00.09s" , frame = ' fk4' )
123
119
>>> table = IrsaDust.get_extinction_table(coo)
124
-
125
120
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_wuevFn_3781/DUST/345.094229457703_26.418650782801027.v0001/extinction.tbl
126
121
|=======================================================================================| 4.4k/4.4k (100.00%) 0s
127
-
128
122
>>> print (table)
129
-
130
123
Filter_name LamEff A_over_E_B_V_SandF A_SandF A_over_E_B_V_SFD A_SFD
131
124
microns mags mags
132
125
----------- ------- ------------------ ------- ---------------- -----
@@ -167,22 +160,19 @@ argument. If on the other hand, ``section`` is missing then the complete table
167
160
with all the four sections will be returned.
168
161
169
162
.. code-block :: python
163
+ .. doctest-remote-data ::
170
164
171
165
>>> from astroquery.irsa_dust import IrsaDust
172
166
>>> table = IrsaDust.get_query_table(' 2MASXJ23045666+1219223' ) # get the whole table
173
167
>>> print (table)
174
-
175
168
RA Dec coord sys regSize ... temp mean temp std temp max temp min
176
169
deg deg deg
177
170
--------- -------- --------- ------- ... --------- -------- -------- --------
178
171
346.23608 12.32286 equ J2000 5.0 ... 17.0721 0.0345 17.1189 17.0152
179
-
180
172
# fetch only one section of the table
181
-
182
173
>>> table = IrsaDust.get_query_table(' 2MASXJ23045666+1219223' ,
183
174
... section= ' ebv' )
184
175
>>> print (table)
185
-
186
176
ext desc ... ext SFD min
187
177
...
188
178
---------------- ... -----------
0 commit comments