bruntVaisallaOmegaSquared | R Documentation |
Brunt-Vaisalla (angular) frequency (aquared, s^{-2}
) considering hydrostatic equilibrium. P is used as a vertical level.
bruntVaisallaOmegaSquared(Ps, Ts, ws, consts = export_constants())
Ps |
A vector with pressure values (Pa). |
Ts |
A vector with temperature values (K). |
ws |
A vector with mixing ratio values (kg/kg). |
consts |
The constants defined in aiRthermoConstants data are necessary. The constants g and Rd are used. |
The angular frequency (squared, s^{-2}
) is returned in order to avoid complex numbers.
The Brunt-Vaisalla (angular) frequency (squared) is returned.
For stable atmospheres, should be positive at every level. Ps, Ts and ws are 1D arrays.
PT2Theta
and densityMoistAir
are used inside bruntVaisallaOmegaSquared
function.
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
bruntVaisallaOmegaSquared(dPs,dTs,dws)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.