Bases: astroquery.query.BaseQuery
Attributes Summary
AVAILABLE_TEMPLATES | |
BASE_URL | str(object=’‘) -> string |
IMAGING | str(object=’‘) -> string |
MAXQUERIES | int(x=0) -> int or long |
QUERY_URL | str(object=’‘) -> string |
SPECTRO_1D | str(object=’‘) -> string |
TEMPLATES | str(object=’‘) -> string |
Methods Summary
get_images(*args, **kwds) | Download an image from SDSS. |
get_images_async(*args, **kwds) | Download an image from SDSS. |
get_spectra(*args, **kwds) | Download spectrum from SDSS. |
get_spectra_async(*args, **kwds) | Download spectrum from SDSS. |
get_spectral_template(*args, **kwds) | Download spectral templates from SDSS DR-2, which are located here: http://www.sdss.org/dr5/algorithms/spectemplates/ There 32 spectral templates available from DR-2, from stellar spectra, to galaxies, to quasars. |
get_spectral_template_async(*args, **kwds) | Download spectral templates from SDSS DR-2, which are located here: http://www.sdss.org/dr5/algorithms/spectemplates/ There 32 spectral templates available from DR-2, from stellar spectra, to galaxies, to quasars. |
query_region(*args, **kwds) | Queries the service and returns a table object. |
query_region_async(*args, **kwds) | Used to query a region around given coordinates. |
Attributes Documentation
Methods Documentation
Download an image from SDSS.
Querying SDSS for images will return the entire plate. For subsequent analyses of individual objects
Parameters : | crossID : dict
band : str, list
|
---|---|
Returns : | List of PyFITS HDUList objects. : |
Download an image from SDSS.
Querying SDSS for images will return the entire plate. For subsequent analyses of individual objects
Parameters : | crossID : dict
band : str, list
|
---|---|
Returns : | List of PyFITS HDUList objects. : |
Download spectrum from SDSS.
Parameters : | matches : astropy.table.Table instance (result of query_region). |
---|---|
Returns : | List of PyFITS HDUList objects. : |
Download spectrum from SDSS.
Parameters : | matches : astropy.table.Table instance (result of query_region). |
---|---|
Returns : | A list of context-managers that yield readable file-like objects : |
Download spectral templates from SDSS DR-2, which are located here:
There 32 spectral templates available from DR-2, from stellar spectra, to galaxies, to quasars. To see the available templates, do:
from astroquery.sdss import SDSS print sdss.AVAILABLE_TEMPLATES
Parameters : | kind : str, list
|
---|---|
Returns : | List of PyFITS HDUList objects. : |
Examples
>>> qso = SDSS.get_spectral_template(kind='qso')
>>> Astar = SDSS.get_spectral_template(kind='star_A')
>>> Fstar = SDSS.get_spectral_template(kind='star_F')
Download spectral templates from SDSS DR-2, which are located here:
There 32 spectral templates available from DR-2, from stellar spectra, to galaxies, to quasars. To see the available templates, do:
from astroquery.sdss import SDSS print sdss.AVAILABLE_TEMPLATES
Parameters : | kind : str, list
|
---|---|
Returns : | List of PyFITS HDUList objects. : |
Examples
>>> qso = SDSS.get_spectral_template(kind='qso')
>>> Astar = SDSS.get_spectral_template(kind='star_A')
>>> Fstar = SDSS.get_spectral_template(kind='star_F')
Queries the service and returns a table object. Used to query a region around given coordinates. Equivalent to the object cross-ID from the web interface.
Parameters : | coordinates : str or astropy.coordinates object
radius : str or astropy.units.Quantity object, optional
fields : list, optional
spectro : bool, optional
|
---|---|
Returns : | An `astropy.table.Table` object : |
Examples
>>> from astroquery.sdss import SDSS
>>> from astropy import coordinates as coords
>>> result = SDSS.query_region(coords.ICRSCoordinates('0h8m05.63s +14d50m23.3s'))
Used to query a region around given coordinates. Equivalent to the object cross-ID from the web interface.
Parameters : | coordinates : str or astropy.coordinates object
radius : str or astropy.units.Quantity object, optional
fields : list, optional
spectro : bool, optional
|
---|---|
Returns : | result : astropy.table.Table
|
Examples
>>> from astroquery.sdss import SDSS
>>> from astropy import coordinates as coords
>>> result = SDSS.query_region(coords.ICRSCoordinates('0h8m05.63s +14d50m23.3s'))