saturation_mixing_ratio {aiRthermo} | 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)