Skip to contents

Compute dewpoint temperature from specific humidity and pressure

Usage

td_from_q_and_p(q, p, kelvin = TRUE)

Arguments

q

Specific humidity - can be in g / kg or kg / kg

p

pressure - can be Pa or hPa (mb)

kelvin

Logical - if TRUE (the defualt) return temperature in Kelvin otherwise in degrees C.

Value

Dew point temperature

Examples

td_from_q_and_p(0.008, 1000)
#> [1] 556.9305
td_from_q_and_p(8, 10000, kelvin = FALSE)
#> [1] 323.7823