Skip to content

Commit bffa2bd

Browse files
tinuademargaretbsipocz
authored andcommitted
irsa_dust doc cleanup
1 parent 6b34f88 commit bffa2bd

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

docs/irsa/irsa_dust.rst

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@ specified in any appropriate unit, however it must fall in the range of 2 to
2222
37.5 degrees.
2323

2424
.. code-block:: python
25+
.. doctest-remote-data::
2526

2627
>>> from astroquery.irsa_dust import IrsaDust
2728
>>> image_list = IrsaDust.get_images("m81")
28-
2929
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_pdTImE_1525/DUST/m81.v0001/p414Dust.fits
3030
|===========================================| 331k/331k (100.00%) 15s
3131
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_pdTImE_1525/DUST/m81.v0001/p414i100.fits
3232
|===========================================| 331k/331k (100.00%) 13s
3333
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_pdTImE_1525/DUST/m81.v0001/p414temp.fits
3434
|===========================================| 331k/331k (100.00%) 05s
35-
36-
>>> image_list
37-
35+
>>> image_list # doctest: +IGNORE_OUTPUT
3836
[[<astropy.io.fits.hdu.image.PrimaryHDU at 0x39b8610>],
3937
[<astropy.io.fits.hdu.image.PrimaryHDU at 0x39b8bd0>],
4038
[<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
4745
images:
4846

4947
.. code-block:: python
48+
.. doctest-remote-data::
5049

5150
>>> from astroquery.irsa_dust import IrsaDust
5251
>>> import astropy.units as u
5352
>>> image = IrsaDust.get_images("m81", image_type="100um",
5453
... radius=2*u.deg)
55-
5654
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_007Vob_24557/DUST/m81.v0001/p414i100.fits
5755
|===========================================| 149k/149k (100.00%) 02s
58-
59-
6056
>>> image
61-
62-
[[<astropy.io.fits.hdu.image.PrimaryHDU at 0x3a5a650>]]
57+
[[<astropy.io.fits.hdu.image.PrimaryHDU at 0x3a5a650>]] # doctest: +IGNORE_OUTPUT
6358

6459
The image types that are available can also be listed out any time:
6560

6661
.. code-block:: python
62+
.. doctest-remote-data::
6763

6864
>>> from astroquery.irsa_dust import IrsaDust
6965
>>> IrsaDust.list_image_types()
70-
7166
['ebv', 'temperature', '100um']
7267

7368
The target may also be specified via coordinates passed as strings. Examples of acceptable coordinate
7469
strings can be found on this `IRSA DUST coordinates description page`_.
7570

7671
.. code-block:: python
72+
.. doctest-remote-data::
7773

7874
>>> from astroquery.irsa_dust import IrsaDust
7975
>>> import astropy.coordinates as coord
8076
>>> import astropy.units as u
8177
>>> image_list = IrsaDust.get_images("17h44m34s -27d59m13s", radius=2.0 * u.deg)
82-
8378
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_46IWzq_9460/DUST/17h44m34s_-27d59m13s.v0001/p118Dust.fits
8479
|==============================| 57k/ 57k (100.00%) 00s
8580
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
9489
:meth:`~astroquery.irsa_dust.IrsaDustClass.get_images`.
9590

9691
.. code-block:: python
92+
.. doctest-remote-data::
9793

9894
>>> from astroquery.irsa_dust import IrsaDust
9995
>>> import astropy.coordinates as coord
10096
>>> import astropy.units as u
10197
>>> coo = coord.SkyCoord(34.5565*u.deg, 54.2321*u.deg, frame='galactic')
10298
>>> image_urls = IrsaDust.get_image_list(coo)
10399
>>> image_urls
104-
105100
['http://irsa.ipac.caltech.edu//workspace/TMP_gB3awn_6492/DUST/34.5565_54.2321_gal.v0001/p292Dust.fits',
106101
'http://irsa.ipac.caltech.edu//workspace/TMP_gB3awn_6492/DUST/34.5565_54.2321_gal.v0001/p292i100.fits',
107102
'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
114109
value:
115110

116111
.. code-block:: python
112+
.. doctest-remote-data::
117113

118114
>>> from astroquery.irsa_dust import IrsaDust
119115
>>> import astropy.coordinates as coord
120116
>>> import astropy.units as u
121117
>>> # "22h57m57.5s +26d09m00.09s Equatorial B1950"
122118
>>> coo = coord.SkyCoord("22h57m57.5s +26d09m00.09s", frame='fk4')
123119
>>> table = IrsaDust.get_extinction_table(coo)
124-
125120
Downloading http://irsa.ipac.caltech.edu//workspace/TMP_wuevFn_3781/DUST/345.094229457703_26.418650782801027.v0001/extinction.tbl
126121
|=======================================================================================| 4.4k/4.4k (100.00%) 0s
127-
128122
>>> print(table)
129-
130123
Filter_name LamEff A_over_E_B_V_SandF A_SandF A_over_E_B_V_SFD A_SFD
131124
microns mags mags
132125
----------- ------- ------------------ ------- ---------------- -----
@@ -167,22 +160,19 @@ argument. If on the other hand, ``section`` is missing then the complete table
167160
with all the four sections will be returned.
168161

169162
.. code-block:: python
163+
.. doctest-remote-data::
170164

171165
>>> from astroquery.irsa_dust import IrsaDust
172166
>>> table = IrsaDust.get_query_table('2MASXJ23045666+1219223') # get the whole table
173167
>>> print(table)
174-
175168
RA Dec coord sys regSize ... temp mean temp std temp max temp min
176169
deg deg deg
177170
--------- -------- --------- ------- ... --------- -------- -------- --------
178171
346.23608 12.32286 equ J2000 5.0 ... 17.0721 0.0345 17.1189 17.0152
179-
180172
# fetch only one section of the table
181-
182173
>>> table = IrsaDust.get_query_table('2MASXJ23045666+1219223',
183174
... section='ebv')
184175
>>> print(table)
185-
186176
ext desc ... ext SFD min
187177
...
188178
---------------- ... -----------

0 commit comments

Comments
 (0)