crackz

mpdaf.sdetect.crackz(nlines, wl, flux, eml, zguess=None)[source]

Method to estimate the best redshift matching a list of emission lines.

Algorithm from Johan Richard (johan.richard@univ-lyon1.fr)

Parameters:
nlinesint

Number of emission lines

wlarray of float

Table of observed line wavelengths

fluxarray of float

Table of line fluxes

emldict

Full catalog of lines to test redshift

zguessfloat

Guess redshift to test (only this)

Returns:
out(float, float, int, list of float, list of float, list of str)

(redshift, redshift error, list of wavelengths, list of fluxes, list of lines names)