Skip to content

Commit 05baf1d

Browse files
tinuademargaretbsipocz
authored andcommitted
nvas doc cleanup
1 parent 0cc58b7 commit 05baf1d

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

docs/nvas/nvas.rst

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. doctest-skip-all
2-
31
.. _astroquery.nvas:
42

53
********************************
@@ -19,20 +17,18 @@ coordinates can also be entered directly as a string that conforms to the
1917
format specified by `astropy.coordinates`. Some other parameters you may
2018
optionally specify are the ``radius`` and the frequency band for which the image
2119
must be fetched. You can also specify the maximum allowable noise level in mJy
22-
via the ``max_rms`` keyword parameter. By default this is set to 10000 mJy
20+
via the ``max_rms`` keyword parameter. By default this is set to 10000 mJy
2321

2422
.. code-block:: python
25-
23+
.. doctest-remote-data::
24+
2625
>>> from astroquery.nvas import Nvas
2726
>>> import astropy.units as u
28-
>>> images = Nvas.get_images("3c 273", radius=2*u.arcsec, band="K", max_rms=500)
29-
27+
>>> images = Nvas.get_images("3c 273", radius=2*u.arcsec, band="K", max_rms=500) # doctest: +IGNORE_OUTPUT
3028
1 images found.
3129
Downloading http://www.vla.nvas.edu/astro/archive/pipeline/position/J122906.7+020308/22.4I0.37_TEST_1995NOV15_1_352.U55.6S.imfits
3230
|===========================================| 10M/ 10M (100.00%) 19m37s
33-
34-
>>> images
35-
31+
>>> images # doctest: +IGNORE_OUTPUT
3632
[[<astropy.io.fits.hdu.image.PrimaryHDU at 0x3376150>]]
3733

3834

@@ -48,15 +44,16 @@ Let's look at an example that uses coordinates for specifying the search
4844
centre.
4945

5046
.. code-block:: python
47+
.. doctest-remote-data::
5148

5249
>>> from astroquery.nvas import Nvas
5350
>>> import astropy.coordinates as coord
5451
>>> import astropy.units as u
5552
>>> images = Nvas.get_images(coord.SkyCoord(49.489, -0.37,
5653
... unit=(u.deg, u.deg), frame='galactic'),
57-
... band="K")
54+
... band="K") # doctest: +IGNORE_OUTPUT
55+
5856

59-
6057
You may also fetch UVfits files rather than the IMfits files which is the
6158
default. To do this simply set the ``get_uvfits`` to ``True``, in any of the query
6259
methods. You can also fetch the URLs to the downloadable images rather than the
@@ -66,19 +63,15 @@ arguments as :meth:`~astroquery.nvas.NvasClass.get_images` above except for the
6663
``verbose`` argument which isn't relevant in this case.
6764

6865
.. code-block:: python
69-
66+
.. doctest-remote-data::
67+
7068
>>> from astroquery.nvas import Nvas
7169
>>> import astropy.coordinates as coord
7270
>>> import astropy.units as u
7371
>>> image_urls = Nvas.get_image_list("05h34m31.94s 22d00m52.2s",
74-
... radius='0d0m0.6s', max_rms=500)
75-
76-
WARNING: Coordinate string is being interpreted as an ICRS
77-
coordinate. [astroquery.utils.commons]
78-
79-
>>> image_urls
80-
81-
['http://www.vla.nrao.edu/astro/archive/pipeline/position/J053431.5+220114/1.51I4.12_T75_1986AUG12_1_118.U3.06M.imfits',
72+
... radius='0d0m0.6s', max_rms=500) # doctest: +IGNORE_WARNINGS
73+
>>> image_urls # doctest: +IGNORE_OUTPUT
74+
['http://www.vla.nrao.edu/astro/archive/pipeline/position/J053431.5+220114/1.51I4.12_T75_1986AUG12_1_118.U3.06M.imfits',
8275
'http://www.vla.nrao.edu/astro/archive/pipeline/position/J053431.5+220114/1.51I3.92_T75_1986AUG20_1_373.U2.85M.imfits',
8376
'http://www.vla.nrao.edu/astro/archive/pipeline/position/J053431.5+220114/4.89I1.22_T75_1986AUG12_1_84.8U2.73M.imfits',
8477
'http://www.vla.nrao.edu/astro/archive/pipeline/position/J053431.9+220052/1.44I1.26_AH0336_1989FEB03_1_197.U8.29M.imfits',

0 commit comments

Comments
 (0)