find_lines_threshold

specutils.fitting.find_lines_threshold(spectrum, noise_factor=1)[source]

Find the emission and absorption lines in a spectrum. The method here is based on deviations larger than the spectrum’s uncertainty by the noise_factor.

This method only works with continuum-subtracted spectra and the uncertainty must be defined on the spectrum. To add the uncertainty, one could use noise_region_uncertainty to add the uncertainty.

Parameters:
spectrumSpectrum1D

The spectrum object in which the lines will be found.

noise_factorfloat
noise_factor multiplied by the spectrum’s``uncertainty``, used for

thresholding.

Returns:
qtable: QTable

Table of emission and absorption lines. Line center (line_center), line type (line_type) and index of line center (line_center_index) are stored for each line.