lair.meteorology.T_from_e#

lair.meteorology.T_from_e(e)[source]#

Calculate the temperature from vapor pressure.

Parameters:

e (float) – Vapor pressure in Pascals.

Returns:

float – Temperature in Kelvin.

Return type:

Any

See also

sat_vapor_pres

Its inverse.

Examples

The temperature at which the saturation vapor pressure is 1500 Pa (the dew point of air with that vapor pressure):

>>> from lair.meteorology import T_from_e
>>> round(float(T_from_e(1500.0)), 2)
286.11