trapezoid_smooth¶
- specutils.manipulation.trapezoid_smooth(spectrum, width)[source]¶
Smooth a
Spectruminstance along the spectral axis based on aastropy.convolution.Trapezoid1DKernelkernel.- Parameters:
- spectrum
Spectrum The
Spectrumobject to which the smoothing will be applied.- widthnumber
The width of the kernel, in pixels, as defined in
astropy.convolution.Trapezoid1DKernel
- spectrum
- Returns:
- Raises:
- ValueError
In the case that
widthis not the correct type or value.