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: flux : array-like
The input spectral flux.
ivar : array-like
The inverse variance of the spectral flux.
loglam : array-like, optional
The input wavelength solution.
zfit : array-like, optional
The redshift of each input spectrum.
aesthetics :
str
, optionalThis parameter will be passed to
combine1fiber()
.newloglam : array-like, optional
The output wavelength solution.
wavemin :
float
, optionalMinimum wavelength if
newloglam
is not specified.wavemax :
float
, optionalMaximum wavelength if
newloglam
is not specified.verbose :
bool
, optionalIf
True
, print extra information.Returns: The resampled flux, inverse variance and wavelength solution, respectively.