saturation_mixing_ratio {aiRthermo} | R Documentation |
Saturation Mixing Ratio
Description
This function calculates the saturation mixing ratio from a given temperature and pressure.
Usage
saturation_mixing_ratio(P, Temp, consts = export_constants())
Arguments
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. |
Value
This function returns a vector with saturation mixing ratio values (kg/kg).
Examples
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
saturation_mixing_ratio(dPs,dTs)
[Package aiRthermo version 1.2.1 Index]