Learn R Programming

humidity (version 0.1.5)

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.

Value

numeric relative humidity in

See Also

AH, SH.

Examples

Run this code
# NOT RUN {
SH2RH(0.005867353, 22.25, p = 101325, isK = FALSE)
# }

Run the code above in your browser using DataLab