SH2RH: convert specific humidity into relative humidity
Description
Climate models usually provide specific humidity only; however, relative humidity is used to compute heat index that is really useful for health impacts studies. This function converts specific humidity \(q\) into relative humidity \(\psi\) at temperature \(t\) and under atmospheric pressure \(q\).
Usage
SH2RH(q, t, p = 101325, isK = TRUE)
Arguments
q
specific humidity \(q\) (\(kg/kg\))
t
temperature in Kelvin (K) or in degree Celsius (<U+00B0>C)
p
atmospheric pressure in Pascal (Pa). The default is standard atmospheric pressure of 101325Pa.
isK
logical indicator whether temperature is in Kelvin (K). The default value is TRUE.