Description Usage Arguments Value Examples
This function calculates the saturation mixing ratio from a given temperature and pressure.
1 | 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).
1 2 3 4 | data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
saturation_mixing_ratio(dPs,dTs)
|
[1] 2.723638e-02 2.193893e-02 1.610854e-02 1.596980e-02 1.485818e-02
[6] 1.656650e-02 1.657627e-02 1.647301e-02 1.565945e-02 1.552321e-02
[11] 1.520185e-02 1.187555e-02 9.822761e-03 9.443013e-03 9.391341e-03
[16] 9.026083e-03 8.025968e-03 7.609857e-03 6.790136e-03 5.127963e-03
[21] 4.446510e-03 4.395092e-03 3.520768e-03 1.816163e-03 1.475587e-03
[26] 1.406121e-03 1.228284e-03 8.011994e-04 5.905685e-04 3.677563e-04
[31] 2.756078e-04 1.625241e-04 1.201068e-04 1.057802e-04 9.060571e-05
[36] 8.087055e-05 7.187637e-05 7.259522e-05 8.185295e-05 8.824437e-05
[41] 9.377070e-05 1.523076e-04 1.128588e-04 1.026540e-04 9.157220e-05
[46] 1.402548e-04 1.360353e-04 1.096964e-04 1.335626e-04 1.509485e-04
[51] 1.386910e-04 9.583819e-05 1.276027e-04 1.455249e-04 1.534982e-04
[56] 1.583091e-04 1.659478e-04 1.686050e-04 1.808131e-04 2.058367e-04
[61] 2.811416e-04 2.904826e-04 2.786971e-04 2.692489e-04 2.698488e-04
[66] 4.813754e-04 5.873518e-04 6.742560e-04 7.386046e-04 9.699264e-04
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.