matchlines¶
-
mpdaf.sdetect.
matchlines
(nlines, wl, z, eml)[source]¶ Try to match all the lines given.
For each line computes the distance in Angstroms to the closest line. Add the errors
Algorithm from Johan Richard (johan.richard@univ-lyon1.fr)
Parameters: - nlines : int
Number of emission lines
- wl : array of float
Table of wavelengths
- z : float
Redshift to test
- eml : dict
Full catalog of lines to test redshift. key: wavelength, value: name.
Returns: - out : (array of float, array of float)
(list of wavelengths, errors)