brunt_vaisala_period#

metpy.calc.brunt_vaisala_period(height, potential_temperature, vertical_dim=0)[source]#

Calculate the Brunt-Vaisala period.

This function is a helper function for brunt_vaisala_frequency that calculates the period of oscillation as in Exercise 3.13 of [Hobbs2006]:

\[\tau = \frac{2\pi}{N}\]

Returns NaN when \(N^2 > 0\).

Parameters:
Returns:

pint.Quantity or xarray.DataArray – Brunt-Vaisala period. Given as pint.Quantity, unless both height and potential_temperature arguments are given as xarray.DataArray, in which case will be xarray.DataArray.

Changed in version 1.0: Renamed heights, axis parameters to height, vertical_dim