powered by
Saturation water vapour pressure (kPa)
.get_ps(Temp, P, unitless)
Value in kPa of class units
units
Temperature in Kelvin
Atmospheric pressure in kPa
Logical. Should function use parameters with units? The function is faster when FALSE, but input must be in correct units or else results will be incorrect without any warning.
Goff-Gratch equation (see https://cires1.colorado.edu/~voemel/vp.html) This equation assumes P = 1 atm = 101.3246 kPa, otherwise boiling temperature needs to change
https://cires1.colorado.edu/~voemel/vp.html
T_leaf <- set_units(298.15, K) P <- set_units(101.3246, kPa) tealeaves:::.get_ps(T_leaf, P, FALSE)
Run the code above in your browser using DataLab