Description Usage Arguments Value See Also Examples
This function gets the mixing ratio (kg/kg) from a given relative humidity (%), pressure (Pa) and temperature (K).
1 | rh2w(P, Temp, rh, consts = export_constants())
|
P |
A vector with pressure values in Pa. |
Temp |
A vector with temperature values in Kelvin. |
rh |
A vector with relative humidity values in (%). |
consts |
The constants defined in aiRthermoConstants data are necessary. |
This function returns a vector with mixing ratio values (kg/kg).
1 2 3 4 5 6 7 | data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
dTds<-w2Td(dPs,dws)
rhs<-TTdP2rh(dTs,dTds,dPs)
wfromrh<-rh2w(dPs,dTs,rhs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.