preprocess_spectra¶
- pydl.pydlspec2d.spec1d.preprocess_spectra(flux, ivar, loglam=None, zfit=None, aesthetics='mean', newloglam=None, wavemin=None, wavemax=None, verbose=False)[source]¶
Handle the processing of input spectra through the
combine1fiber()stage.- Parameters:
- fluxarray-like
The input spectral flux.
- ivararray-like
The inverse variance of the spectral flux.
- loglamarray-like, optional
The input wavelength solution.
- zfitarray-like, optional
The redshift of each input spectrum.
- aesthetics
str, optional This parameter will be passed to
combine1fiber().- newloglamarray-like, optional
The output wavelength solution.
- wavemin
float, optional Minimum wavelength if
newloglamis not specified.- wavemax
float, optional Maximum wavelength if
newloglamis not specified.- verbose
bool, optional If
True, print extra information.
- Returns:
tupleofnumpy.ndarrayThe resampled flux, inverse variance and wavelength solution, respectively.