convolution_smooth¶
- specutils.manipulation.convolution_smooth(spectrum, kernel)[source]¶
Apply a convolution based smoothing to the spectrum. The kernel must be one of the 1D kernels defined in
astropy.convolution, and will be applied along the spectral axis of the flux.This method can be used alone but also is used by other specific methods below.
If the spectrum uncertainty exists and is
StdDevUncertainty,VarianceUncertaintyorInverseVariancethen the errors will be propagated through the convolution using a standard propagation of errors. The covariance is not considered, currently.- Parameters:
- spectrum
Spectrum1D The
Spectrum1Dobject to which the smoothing will be applied.- kernel
astropy.convolution.Kernel1Dsubclass or array. The convolution based smoothing kernel - anything that
astropy.convolution.convolveaccepts.
- spectrum
- Returns:
- spectrum
Spectrum1D Output
Spectrum1Dwhich is copy of the one passed in with the updated flux.
- spectrum
- Raises:
- ValueError
In the case that
spectrumandkernelare not the correct types.