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
- spectrumSpectrum1D
The spectrum object over which the summed flux will be calculated.
- regions
SpectralRegionor list ofSpectralRegion 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’fluxunit timesspectral_axisunit.
- flux
Notes
While the flux can be computed on any spectrum or region, it should be continuum-subtracted to compute actual line fluxes.