oceanspy.compute.Ertel_potential_vorticity

oceanspy.compute.Ertel_potential_vorticity(od, full=True)[source]

Compute Ertel Potential Vorticity. Interpolate all terms to C and Z points.

\[Q = - \frac{\omega \cdot \nabla \rho}{\rho} = (f + \zeta)\frac{N^2}{g} + \frac{\left(\zeta_H+e\hat{\mathbf{y}}\right) \cdot\nabla_H\rho}{\rho_0}\]
Parameters used:
g
rho0
omega
Parameters
od: OceanDataset

oceandataset used to compute.

full: bool

If False, only use vertical component of the vorticity vectors (fCoriG, momVort3). If True, use both vertical and horizontal components.

Returns
ds: xarray.Dataset
Ertel_PV: Ertel Potential Vorticity

See also

gradient
relative_vorticity
Brunt_Vaisala_frequency
utils.Coriolis_parameter