moistAdiabaticLapseRate {aiRthermo} | R Documentation |
Moist Adiabatic Lapse Rate
Description
This function calculates the moist adiabatic lapse rate according to a provided mixing ratio (kg/kg) (Tsonis, eq 7.29).
Usage
moistAdiabaticLapseRate(w, consts = export_constants())
Arguments
w |
A vector with mixing ratio values (kg/kg). |
consts |
The constants defined in aiRthermoConstants data are necessary. |
Value
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).
References
Tsonis, A. A. (2002). An Introduction to Atmospheric Thermodynamics, Cambridge University Press, Cambridge. Eq. 7.29.
Examples
data(RadiosondeA)
aws<-RadiosondeA[,6]/1000
moistAdiabaticLapseRate(aws)
[Package aiRthermo version 1.2.1 Index]