nlambda¶
- sofia_redux.spectroscopy.nlambda.nlambda(wavelength, pressure, temperature, water=0.0)[source]¶
Compute the real part of the refractive index of air.
Based on the formulas in Filippenko’s article in 1982, PASP, 94, 715.
- Parameters:
- wavelengthfloat or numpy.ndarray of float (N,)
Wavelength of light in microns
- pressurefloat or numpy.ndarray of float (N,)
Atmospheric pressure in mm of Hg
- temperaturefloat or numpy.ndarray of float (N,)
Atmospheric temperature in degrees Celsius
- waterfloat of numpy.ndarray (N,), optional
Water vapour pressure in mm of Hg
- Returns:
- index_of_refractionfloat or numpy.ndarray of float (N,)
The index of refraction for the input conditions