saturation_mixing_ratio | R Documentation |
This function calculates the saturation mixing ratio from a given temperature and pressure.
saturation_mixing_ratio(P, Temp, consts = export_constants())
P |
A vector with pressure values in Pa. |
Temp |
A vector with temperature values in Kelvin. |
consts |
The constants defined in aiRthermoConstants data are necessary. |
This function returns a vector with saturation mixing ratio values (kg/kg).
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
saturation_mixing_ratio(dPs,dTs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.