polaris.tasks.ocean.horiz_press_grad.finite_volume.hpga_from_shift

polaris.tasks.ocean.horiz_press_grad.finite_volume.hpga_from_shift(shift: DataArray, dx: float) → DataArray[source]

Convert a fixed-pressure height shift into an edge-normal acceleration, -(g / d_e) * shift.

Parameters:
Returns:

hpga (xarray.DataArray) – The edge-normal pressure-gradient acceleration in m s-2.