gaussian_smooth

specutils.manipulation.gaussian_smooth(spectrum, stddev)[source]

Smooth a Spectrum instance along the spectral axis based on a astropy.convolution.Gaussian1DKernel.

Parameters:
spectrumSpectrum

The spectrum object to which the smoothing will be applied.

stddevnumber

The stddev of the kernel, in pixels, as defined in astropy.convolution.Gaussian1DKernel

Returns:
spectrumSpectrum

Output Spectrum which is copy of the one passed in with the updated flux.

Raises:
ValueError

In the case that stddev is not the correct type or value.