Vertical stability functions.
These work with ndarrays of profiles; use the axis keyword argument to specify the axis along which pressure varies. For example, the default, following the Matlab versions, is axis=0, meaning the pressure varies along the first dimension. Use axis=-1 if pressure varies along the last dimension–that is, along a row, as the column index increases, in the 2-D case.
Docstrings will be added later, either manually or via an automated mechanism.
Calculates the ratio of the vertical gradient of potential density to the vertical gradient of locally-referenced potential density. This is also the ratio of the planetary Isopycnal Potential Vorticity (IPV) to f times N^2, hence the name for this variable, IPV_vs_fNsquared_ratio (see Eqn. (3.20.17) of IOC et al. (2010)).
Absolute Salinity, g/kg
In-situ temperature (ITS-90), degrees C
Sea pressure (absolute pressure minus 10.1325 dbar), dbar
Reference pressure, dbar
The ratio of the vertical gradient of potential density referenced to p_ref, to the vertical gradient of locally-referenced potential density, dimensionless.
Pressure at midpoints of p, dbar. The array shape matches IPV_vs_fNsquared_ratio.
Calculate the square of the buoyancy frequency.
Absolute Salinity, g/kg
Conservative Temperature (ITS-90), degrees C
Sea pressure (absolute pressure minus 10.1325 dbar), dbar
Latitude, degrees.
The dimension along which pressure increases.
Buoyancy frequency-squared at pressure midpoints, 1/s^2. The shape along the pressure axis dimension is one less than that of the inputs. (Frequency N is in radians per second.)
Pressure at midpoints of p, dbar. The array shape matches N2.
Calculate the Turner Angle and the Stability Ratio.
Absolute Salinity, g/kg
Conservative Temperature (ITS-90), degrees C
Sea pressure (absolute pressure minus 10.1325 dbar), dbar
The dimension along which pressure increases.
Turner Angle at pressure midpoints, degrees. The shape along the pressure axis dimension is one less than that of the inputs.
Stability Ratio, dimensionless. The shape matches Tu.
Pressure at midpoints of p, dbar. The array shape matches Tu.