
Humidity variables using the GOTM bulk formulation
Source:R/met_conversions.R
calc_humidity_vars.RdVectorised port of AEME::calc_humidity_vars(): saturation and actual
vapour pressure, specific humidities and moist air density, from any of
four humidity inputs.
Usage
calc_humidity_vars(
hum,
hum_method = 1,
airp,
tw,
ta,
rgas = 287.05,
kelvin = 273.15,
const06 = 0.62198
)Arguments
- hum
humidity input, interpreted according to
hum_method.- hum_method
1relative humidity (percent),2wet-bulb temperature,3dew point temperature,4specific humidity (kg/kg).- airp
air pressure, Pa.
- tw
water-surface temperature, degC (or K, auto-detected).
- ta
air temperature, degC (or K, auto-detected).
- rgas
gas constant for dry air, J/kg/K.
- kelvin
degC to K offset.
- const06
ratio of molecular weights of water and dry air.