1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.nvas :
4
2
5
3
********************************
@@ -19,20 +17,18 @@ coordinates can also be entered directly as a string that conforms to the
19
17
format specified by `astropy.coordinates `. Some other parameters you may
20
18
optionally specify are the ``radius `` and the frequency band for which the image
21
19
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
23
21
24
22
.. code-block :: python
25
-
23
+ .. doctest-remote-data ::
24
+
26
25
>>> from astroquery.nvas import Nvas
27
26
>>> 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
30
28
1 images found.
31
29
Downloading http://www.vla.nvas.edu/astro/archive/pipeline/position/J122906.7+020308/22.4I0.37_TEST_1995NOV15_1_352.U55.6S.imfits
32
30
|===========================================| 10M/ 10M (100.00%) 19m37s
33
-
34
- >> > images
35
-
31
+ >>> images # doctest: +IGNORE_OUTPUT
36
32
[[<astropy.io.fits.hdu.image.PrimaryHDU at 0x3376150>]]
37
33
38
34
@@ -48,15 +44,16 @@ Let's look at an example that uses coordinates for specifying the search
48
44
centre.
49
45
50
46
.. code-block :: python
47
+ .. doctest-remote-data ::
51
48
52
49
>>> from astroquery.nvas import Nvas
53
50
>>> import astropy.coordinates as coord
54
51
>>> import astropy.units as u
55
52
>>> images = Nvas.get_images(coord.SkyCoord(49.489 , - 0.37 ,
56
53
... unit= (u.deg, u.deg), frame= ' galactic' ),
57
- ... band = " K" )
54
+ ... band= " K" ) # doctest: +IGNORE_OUTPUT
55
+
58
56
59
-
60
57
You may also fetch UVfits files rather than the IMfits files which is the
61
58
default. To do this simply set the ``get_uvfits `` to ``True ``, in any of the query
62
59
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
66
63
``verbose `` argument which isn't relevant in this case.
67
64
68
65
.. code-block :: python
69
-
66
+ .. doctest-remote-data ::
67
+
70
68
>>> from astroquery.nvas import Nvas
71
69
>>> import astropy.coordinates as coord
72
70
>>> import astropy.units as u
73
71
>>> 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',
82
75
'http://www.vla.nrao.edu/astro/archive/pipeline/position/J053431.5+220114/1.51I3.92_T75_1986AUG20_1_373.U2.85M.imfits',
83
76
'http://www.vla.nrao.edu/astro/archive/pipeline/position/J053431.5+220114/4.89I1.22_T75_1986AUG12_1_84.8U2.73M.imfits',
84
77
'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