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
, optional MJD numbers. If not provided, they will be calculated by
latest_mjd()
.- fiberarray-like, optional
Fibers to read. If not set, all fibers from all plates will be returned.
- topdir
str
, optional Override the value of
BOSS_SPECTRO_REDUX
.- run2d
str
, optional Override the value of
RUN2D
.- run1d
str
, optional Override the value of
RUN1D
.- path
str
, optional Override all path information with this directory name.
- align
bool
, optional If set, align all the spectra in wavelength.
- znum
int
, optional If set, return the znum-th best fit reshift fit, instead of the best.
- platein
- Returns:
dict
A dictionary containing the data read.