findspec¶
-
pydl.pydlspec2d.spec1d.findspec(*args, **kwargs)[source]¶ Find SDSS/BOSS spectra that match a given RA, Dec.
Parameters: ra, dec : array-like, optional
If set, the first two positional arguments will be interpreted as RA, Dec.
best :
bool, optionalIf set, return only the best match for each input RA, Dec.
infile :
str, optionalIf set, read RA, Dec data from this file.
outfile :
str, optionalIf set, print match data to this file.
print :
bool, optionalIf set, print the match data to the console.
run1d :
str, optionalOverride the value of
RUN1D.run2d :
str, optionalOverride the value of
RUN2D.sdss :
bool, optionalIf set, search for SDSS-I/II spectra instead of BOSS spectra.
searchrad :
float, optionalSearch for spectra in this radius around given RA, Dec. Default is 3 arcsec.
topdir :
str, optionalIf set, override the value of
SPECTRO_REDUXorBOSS_SPECTRO_REDUX.Returns: dictA dictionary containing plate, MJD, fiber, etc.