box_smooth¶
- specutils.manipulation.box_smooth(spectrum, width)[source]¶
Smooth a
Spectrum1Dinstance along the spectral axis based on aastropy.convolution.Box1DKernelkernel.- Parameters:
- spectrum
Spectrum1D The spectrum object to which the smoothing will be applied.
- widthnumber
The width of the kernel, in pixels, as defined in
astropy.convolution.Box1DKernel
- spectrum
- Returns:
- spectrum
Spectrum1D Output
Spectrum1Dwhich a copy of the one passed in with the updated flux.
- spectrum
- Raises:
- ValueError
In the case that
widthis not the correct type or value.