aiRthermo (version 1.0)

moistAdiabaticLapseRate: 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, Cam- 563 bridge University Press, Cambridge. Eq. 7.29.

Examples

Run this code
# NOT RUN {
data(RadiosondeA)
aws<-RadiosondeA[,6]/1000
moistAdiabaticLapseRate(aws)
# }

Run the code above in your browser using DataLab