aiRthermo (version 1.1)

w2Td: Dew point temperature from mixing ratio

Description

This function calculates the dew point temperature from given mixing ratio and pressure, following the APPROXIMATE expression 5.68 in Bohren and Albrech (1998).

Usage

w2Td(P, w, consts = export_constants())

Arguments

P

A vector with pressure values in Pa

w

A vector with mixing ratio (kg/kg)

consts

The constants defined in aiRthermoConstants data are necessary.

Value

This function returns a vector with the dew point temperature

References

Bohren, C.F., & Albrecht, B. A. (1998). Atmospheric thermodynamics. Atmospheric thermodynamics. Publisher: New York; Oxford: Oxford University Press, 1998. ISBN: 0195099044. Equation 5.68.

Examples

Run this code
# NOT RUN {
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dws<-RadiosondeD[,6]/1000
w2Td(dPs,dws)
# }

Run the code above in your browser using DataCamp Workspace