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:
nlinesint

Number of emission lines

wlarray of float

Table of wavelengths

zfloat

Redshift to test

emldict

Full catalog of lines to test redshift. key: wavelength, value: name.

Returns:
out(array of float, array of float)

(list of wavelengths, errors)