1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.alfalfa :
4
2
5
3
ALFALFA Queries (`astroquery.alfalfa `)
@@ -12,12 +10,14 @@ This example shows how to perform an object cross-ID with ALFALFA. We'll start
12
10
with the position of a source that exists in another survey (same object we
13
11
used in the SDSS example).
14
12
15
- .. code-block :: python
13
+ .. doctest-remote-data ::
16
14
17
15
>>> from astroquery.alfalfa import Alfalfa
18
16
>>> from astropy import coordinates as coords
19
17
>>> pos = coords.SkyCoord(' 0h8m05.63s +14d50m23.3s' )
20
18
>>> agc = Alfalfa.query_region(pos, optical_counterpart = True )
19
+ >>> agc
20
+ 100051
21
21
22
22
This retrieves the AGC number of the object closest to the supplied ra and dec
23
23
(within search radius dr=3 arcminutes by default). The "optical_counterpart" keyword
@@ -27,19 +27,25 @@ determined by members of the ALFALFA team), rather than their radio centroids.
27
27
The AGC number is an identification number for objects in the ALFALFA survey,
28
28
and once we know it, we can download spectra (if they are available) easily,
29
29
30
- .. code-block :: python
30
+ .. Remove the skip once #2403 is fixed
31
+ .. .. doctest-remote-data::
32
+ .. doctest-skip ::
31
33
32
34
>>> sp = Alfalfa.get_spectrum(agc)
33
35
34
- This returns a PyFITS HDUList object. If we want to have a look at the entire ALFALFA catalog, we can do that too:
36
+ This returns a `~astropy.io.fits.HDUList ` object. If we want to have a look at the
37
+ entire ALFALFA catalog as a dictionary, we can do that too:
35
38
36
- .. code-block :: python
39
+ .. doctest-remote-data ::
37
40
38
41
>>> cat = Alfalfa.get_catalog()
42
+ >>> cat.keys()
43
+ dict_keys(['AGCNr', 'Name', 'RAdeg_HI', 'Decdeg_HI', 'RAdeg_OC', 'DECdeg_OC', 'Vhelio', 'W50', 'errW50', 'HIflux', 'errflux', 'SNR', 'RMS', 'Dist', 'logMsun', 'HIcode', 'OCcode', 'NoteFlag'])
39
44
40
45
which returns a dictionary containing HI measurements for nearly 16,000
41
46
objects.
42
47
48
+
43
49
Reference/API
44
50
-------------
45
51
0 commit comments