polaris.ocean.vertical.ztilde.z_tilde_from_pressure

polaris.ocean.vertical.ztilde.z_tilde_from_pressure(p: DataArray, rho0: float) DataArray[source]

Convert sea pressure to pseudo-height.

z_tilde = -p / (rho0 * g)

Parameters:
Returns:

xarray.DataArray – Pseudo-height with the same shape and coords as p (units: m).