gaussian_smooth¶
-
specutils.manipulation.gaussian_smooth(spectrum, stddev)[source]¶ Smooth a
Spectrum1Dinstance based on aastropy.convolution.Gaussian1DKernel.Parameters: spectrum :
Spectrum1DThe spectrum object to which the smoothing will be applied.
stddev : number
The stddev of the kernel, in pixels, as defined in
astropy.convolution.Gaussian1DKernelReturns: spectrum :
Spectrum1DOutput
Spectrum1Dwhich is copy of the one passed in with the updated flux.Raises: ValueError
In the case that
stddevis not the correct type or value.