z_from_linepos

mpdaf.sdetect.z_from_linepos(iden, wavelength, vac=True)[source]

Returns the redshift at which a line has the given position.

Parameters:
idenstr

Identifier of the line.

wavelengthfloat

Position of the line in Angstrom.

vacbool, optional

If True, the position is given in vacuum, else it is given in air.

Returns:
redshift: float
Raises:
ValueError is iden does not refer to a known line.