gaussian_fwhm

specutils.analysis.gaussian_fwhm(spectrum, region=None)[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:

spectrum : Spectrum1D

The spectrum object overwhich the width will be calculated.

region: `~specutils.utils.SpectralRegion` or list of `~specutils.utils.SpectralRegion`

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

Returns:

gaussian_fwhm : Quantity 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.