Convert the unit of air humidity according to Sonntag 1990. a in g/m-3 , RH in %, q in kg/kg.

mf_convertRH(convert = c("a to RH", "RH to a", "q to RH")[1], x = 10, t = 20, p = 1e+05,
    surface = c("water", "ice")[1])

Arguments

convert

a character defining what is converted to what

x

a given humidity in g/m-3 (a), % (RH), kg/kg (q)

t

temperature, in degree C

p

air pressure, in Pa

surface

ice surface or water surface

Value

new value in destined unit

Examples

mf_convertRH()
#> [1] 58.00315