polaris.ocean.vertical.ztilde.pressure_from_z_tilde
- polaris.ocean.vertical.ztilde.pressure_from_z_tilde(z_tilde: DataArray) DataArray[source]
Convert pseudo-height to sea gauge pressure.
p = -z_tilde * (RhoSw * g)
Pressure here is gauge pressure (relative to the atmosphere), which is zero at the free surface (z_tilde = 0) and positive downward.
- Parameters:
z_tilde (xarray.DataArray) – Pseudo-height in meters (m), positive upward.
- Returns:
xarray.DataArray – Sea gauge pressure with the same shape and coords as
z_tilde(Pa).