fwzi

specutils.analysis.fwzi(spectrum, regions=None)[source]

Compute the true full width at zero intensity (i.e. the continuum level) of the spectrum.

This makes no assumptions about the shape of the spectrum. It uses the scipy peak-finding to determine the index of the highest flux value, and then calculates width at that base of the feature.

Parameters
spectrumSpectrum1D

The spectrum object over which the width will be calculated.

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

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

Returns
Quantity or list (based on region input)

Full width of the signal at zero intensity.

Notes

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