gaussian_sigma_width¶
- specutils.analysis.gaussian_sigma_width(spectrum, regions=None, analytic=True)[source]¶
Estimate the width of the spectrum using a second-moment analysis.
The value is scaled to match the sigma/standard deviation parameter of a standard Gaussian profile. This will be calculated over the regions, if they are specified.
- Parameters:
- spectrum
Spectrum1D
The spectrum object over which the width will be calculated.
- regions: `~specutils.SpectralRegion` or list of `~specutils.SpectralRegion`
Region within the spectrum to calculate the gaussian sigma width. If regions is
None
, computation is performed over entire spectrum.- analyticbool, optional
Set this flag to
False
to use theuncertainty
distribution-based calculation for the width and its uncertainty instead of the default analytic solution.
- spectrum
- Returns:
- approx_sigma:
Quantity
or list (based on region input) Approximated sigma value of the spectrum
- approx_sigma:
Notes
The spectrum should be continuum subtracted before being passed to this function.