moistAdiabaticLapseRate | R Documentation |
This function calculates the moist adiabatic lapse rate according to a provided mixing ratio (kg/kg) (Tsonis, eq 7.29).
moistAdiabaticLapseRate(w, consts = export_constants())
w |
A vector with mixing ratio values (kg/kg). |
consts |
The constants defined in aiRthermoConstants data are necessary. |
This function returns a vector with the moist adiabatic lapse rate (dry adiabatic lapse rate with correction of c_p
due to the water vapour in moist air).
Tsonis, A. A. (2002). An Introduction to Atmospheric Thermodynamics, Cambridge University Press, Cambridge. Eq. 7.29.
data(RadiosondeA)
aws<-RadiosondeA[,6]/1000
moistAdiabaticLapseRate(aws)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.