sdss_sweep_circle

pydl.pydlutils.sdss.sdss_sweep_circle(ra, dec, radius, stype='star', allobj=False)[source]

Read the SDSS datasweep files and return objects around a location.

Parameters:
ra, decfloat

The sky location to search, J2000 degrees.

radiusfloat

The radius around ra, dec to search.

stypestr, optional

The type of object to search, ‘star’, ‘gal’ or ‘sky’. The default is ‘star’.

allobjbool, optional

If set to True, return all objects found, not just SURVEY_PRIMARY.

Returns:
numpy.ndarray

The data extracted from the sweep files.

Raises:
PydlutilsException

If PHOTO_SWEEP is not set.

Notes

Assumes that the sweep files exist in PHOTO_SWEEP and that index files have been created.