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.

regionsSpectralRegion or list of SpectralRegion

Region within the spectrum to calculate the gaussian sigma width. If regions is None, computation is performed over entire spectrum.

Returns
fluxQuantity

Flux in the provided spectrum (or regions). Unit isthe spectrum’s‘ flux unit times spectral_axis unit.

Notes

While the flux can be computed on any spectrum or region, it should be continuum-subtracted to compute actual line fluxes.