readspec¶
-
pydl.pydlspec2d.spec1d.
readspec
(platein, mjd=None, fiber=None, **kwargs)[source]¶ Read SDSS/BOSS spec2d & spec1d files.
Parameters: platein :
int
ornumpy.ndarray
Plate number(s).
mjd :
int
ornumpy.ndarray
, optionalMJD numbers. If not provided, they will be calculated by
latest_mjd()
.fiber : array-like, optional
Fibers to read. If not set, all fibers from all plates will be returned.
topdir :
str
, optionalOverride the value of
BOSS_SPECTRO_REDUX
.run2d :
str
, optionalOverride the value of
RUN2D
.run1d :
str
, optionalOverride the value of
RUN1D
.path :
str
, optionalOverride all path information with this directory name.
align :
bool
, optionalIf set, align all the spectra in wavelength.
znum :
int
, optionalIf set, return the znum-th best fit reshift fit, instead of the best.
Returns: A dictionary containing the data read.