aiRthermo (version 1.1)

bruntVaisallaOmegaSquared: Brunt-Vaisalla (angular) frequency

Description

Brunt-Vaisalla (angular) frequency (\(s^{-2}\)) considering hydrostatic equilibrium. P is used as a vertical level.

Usage

bruntVaisallaOmegaSquared(Ps, Ts, ws, consts = export_constants())

Arguments

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.

Value

omega_sq

Details

The angular frequency (squared, (\(s^{-2}\))) is returned in order to avoid complex numbers.

See Also

PT2Theta and densityMoistAir are used inside bruntVaisallaOmegaSquared.

Examples

Run this code
# NOT RUN {
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
bruntVaisallaOmegaSquared(dPs,dTs,dws)

# }

Run the code above in your browser using DataCamp Workspace