w2Td | R Documentation |
This function calculates the dew point temperature from given mixing ratio and pressure, following the APPROXIMATE expression 5.68 in Bohren and Albrech (1998).
w2Td(P, w, consts = export_constants())
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. |
This function returns a vector with the dew point temperature.
Bohren, C.F., & Albrecht, B. A. (1998). Atmospheric thermodynamics. Atmospheric thermodynamics. Publisher: New York; Oxford: Oxford University Press, 1998. ISBN: 0195099044. Equation 5.68.
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dws<-RadiosondeD[,6]/1000
w2Td(dPs,dws)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.