gaussian_fwhm

specutils.analysis.gaussian_fwhm(spectrum, regions=None, analytic=True)[source]

Estimate the width of the spectrum using a second-moment analysis.

The value is scaled to match the full width at half max of a standard Gaussian profile. This will be calculated over the regions, if they are specified.

Parameters:
spectrumSpectrum1D

The spectrum object overwhich the width will be calculated.

regionsSpectralRegion or list of SpectralRegion

Region within the spectrum to calculate the FWHM value. If regions is None, computation is performed over entire spectrum.

analyticbool, optional

Set this flag to False to use the uncertainty distribution-based calculation for the fwhm and its uncertainty instead of the default analytic solution.

Returns:
gaussian_fwhmQuantity or list (based on region input)

Approximate full width of the signal at half max

Notes

The spectrum should be continuum subtracted before being passed to this function.