SH2RH: convert specific humidity into relative humidity

Description Usage Arguments Value Author(s) See Also Examples

View source: R/humidity.R

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 ψ at temperature t and under atmospheric pressure q.

Usage

1
SH2RH(q, t, p = 101325, isK = TRUE)

Arguments

q

specific humidity q (kg/kg)

t

temperature in Kelvin (K) or in degree Celsius (°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

Author(s)

Jun Cai (cai-j12@mails.tsinghua.edu.cn), PhD candidate from Department of Earth System Science, Tsinghua University

See Also

AH, SH.

Examples

1
SH2RH(0.005867353, 22.25, p = 101325, isK = FALSE)

Example output

[1] 35.00009

humidity documentation built on Nov. 10, 2019, 9:07 a.m.