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