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, dec
float The sky location to search, J2000 degrees.
- radius
float The radius around
ra,decto search.- stype
str, optional The type of object to search, ‘star’, ‘gal’ or ‘sky’. The default is ‘star’.
- allobj
bool, optional If set to
True, return all objects found, not just SURVEY_PRIMARY.
- ra, dec
- Returns:
numpy.ndarrayThe data extracted from the sweep files.
- Raises:
PydlutilsExceptionIf
PHOTO_SWEEPis not set.
Notes
Assumes that the sweep files exist in
PHOTO_SWEEPand that index files have been created.