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 (converted to standard deviation if in another representation) 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_uncertaintyto add the uncertainty.- Parameters:
- spectrum
Spectrum1D The spectrum object in which the lines will be found.
- noise_factorfloat
noise_factormultiplied by the spectrum’s``uncertainty``, used forthresholding.
- spectrum
- 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.
- qtable: