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: - iden : str
Identifier of the line.
- wavelength : float
Position of the line in Angstrom.
- vac : bool, 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.