powered by
This function calculates the saturation mixing ratio from a given temperature and pressure.
saturation_mixing_ratio(P, Temp, consts = export_constants())
A vector with pressure values in Pa.
A vector with temperature values in Kelvin.
The constants defined in aiRthermoConstants data are necessary.
This function returns a vector with saturation mixing ratio values (kg/kg).
# NOT RUN { data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dTs<-C2K(RadiosondeD[,3]) saturation_mixing_ratio(dPs,dTs) # }
Run the code above in your browser using DataLab