varwg.meteo.meteox2y.vap_p2rel¶
- varwg.meteo.meteox2y.vap_p2rel(e, at)[source]¶
relative humidity from vapour pressure and air temperature
- Parameters:
- efloat or numpy.array of floats
vapour pressure [hPa]
- atfloat or numpy.array of floats
air temperature [deg C]
- Returns:
- rhfloat or numpy.array of floats
relative humidity with values between 0 and 1 [-]
Examples
>>> vap_p2rel(6.22,20.0) 0.26592027532201407
>>> e = np.array((5.5, 5.8, 6.1, 6.2, 6.3)) >>> at = np.array((0.0, 2.5, 5.0, 7.5, 10.0)) >>> vap_p2rel(e,at) array([0.90016367, 0.79285516, 0.69906301, 0.59780966, 0.512877 ])