astroquery:docs

ALFALFA

class astroquery.alfalfa.core.ALFALFA(*args)[source] [edit on github]

Bases: astroquery.query.BaseQuery

Attributes Summary

CATALOG_PREFIX str(object=’‘) -> string
FITS_PREFIX str(object=’‘) -> string
PLACEHOLDER int(x=0) -> int or long

Methods Summary

get_catalog(*args, **kwds) Download catalog of ALFALFA source properties.
get_spectrum(*args, **kwds) Download spectrum from ALFALFA catalogue.
query_region(*args, **kwds) Perform object cross-ID in ALFALFA.

Attributes Documentation

CATALOG_PREFIX = 'http://egg.astro.cornell.edu/alfalfa/data/a40files/a40.datafile1.csv'
FITS_PREFIX = 'http://arecibo.tc.cornell.edu/hiarchive/alfalfa/spectraFITS'
PLACEHOLDER = -999999

Methods Documentation

static get_catalog(*args, **kwds)[source] [edit on github]

Download catalog of ALFALFA source properties.

Returns :Dictionary of results, each element is a masked array. :

Notes

This catalog has ~15,000 entries, so after it’s downloaded, it is made global to save some time later.

static get_spectrum(*args, **kwds)[source] [edit on github]

Download spectrum from ALFALFA catalogue.

Parameters :

agc : int

Identification number for object in ALFALFA catalog.

ascii : bool

Download spectrum from remote server in ASCII or FITS format?

Returns :

PyFITS HDUList. Spectrum is in hdulist[0].data[0][2] :

See also

get_catalog
method that downloads ALFALFA catalog
crossID
find object in catalog closest to supplied position (use this to determine AGC number first)
static query_region(*args, **kwds)[source] [edit on github]

Perform object cross-ID in ALFALFA.

Search for objects near position (ra, dec) within some radius.

Parameters :

coordinates : str or astropy.coordinates object

The target around which to search. It may be specified as a string in which case it is resolved using online services or as the appropriate astropy.coordinates object. ICRS coordinates may also be entered as strings as specified in the astropy.coordinates module.

radius : str or astropy.units.Quantity object, optional

The string must be parsable by astropy.coordinates.Angle. The appropriate Quantity object from astropy.units may also be used. Defaults to 3 arcmin.

optical_counterpart : bool

Search for position match using radio positions or position of any optical counterpart identified by ALFALFA team? Keep in mind that the ALFA beam size is about 3x3 arcminutes.

See documentation for astropy.coordinates.angles for more information :

about (‘ra’, ‘dec’, ‘unit’) parameters. :

Returns :

AGC number for object nearest supplied position. :

Examples

>>> agc = alfalfa.crossID(ra='0h8m05.63s', dec='14d50m23.3s', dr)
>>> for match in xid:
>>>     print match['ra'], match['dec'], match['objid']

Page Contents