line_flux¶
-
specutils.analysis.
line_flux
(spectrum, regions=None)[source]¶ Computes the integrated flux in a spectrum or region of a spectrum.
Applies to the whole spectrum by default, but can be limited to a specific feature (like a spectral line) if a region is given.
Parameters: spectrum : Spectrum1D
The spectrum object over which the summed flux will be calculated.
regions: `~specutils.utils.SpectralRegion` or list of `~specutils.utils.SpectralRegion`
Region within the spectrum to calculate the gaussian sigma width. If regions is
None
, computation is performed over entire spectrum.Returns: flux :
Quantity
Flux in the provided spectrum (or regions). Unit isthe
spectrum
’s‘flux
unit timesspectral_axis
unit.Notes
While the flux can be computed on any spectrum or region, it should be continuum-subtracted to compute actual line fluxes.