varwg.meteo.meteox2y.rel2vap_p

varwg.meteo.meteox2y.rel2vap_p(rh, at)[source]

vapour pressure from relative humidity and air temperature

Parameters:
rhfloat or numpy.array of floats

relative humidity with values between 0 and 1 [-]

atfloat or numpy.array of floats

air temperature [deg C]

Returns:
efloat or numpy.array of floats

vapour pressure [hPa]

Examples

>>> rel2vap_p(0.5,20.0)
11.695234581996313
>>> rh = np.array((0.9, 0.8, 0.7, 0.6, 0.5))
>>> at = np.array((0.0, 2.5, 5.0, 7.5, 10.0))
>>> rel2vap_p(rh,at)
array([5.499     ,  5.85226692,  6.10817613,  6.22271646,  6.14182351])