trapezoid_smooth¶
-
specutils.manipulation.
trapezoid_smooth
(spectrum, width)[source]¶ Smoothing based on a
astropy.convolution.Trapezoid1DKernel
kernel.Parameters: spectrum :
Spectrum1D
The
Spectrum1D
object to which the smoothing will be applied.width : number
The width of the kernel, in pixels, as defined in
astropy.convolution.Trapezoid1DKernel
Returns: spectrum :
Spectrum1D
Output
Spectrum1D
which is copy of the one passed in with the updated flux.Raises: ValueError
In the case that
width
is not the correct type or value.