td_from_q_and_p: Compute dewpoint temperature from specific humidity and...

View source: R/td_from_q_and_p.R

td_from_q_and_pR Documentation

Compute dewpoint temperature from specific humidity and pressure

Description

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)
td_from_q_and_p(8, 10000, kelvin = FALSE)

andrew-MET/harpIO documentation built on March 7, 2024, 7:48 p.m.