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:
shift (xarray.DataArray) – A fixed-pressure height shift in m, such as
centered_shift()returns.dx (float) – The distance
d_ebetween the two columns in m.
- Returns:
hpga (xarray.DataArray) – The edge-normal pressure-gradient acceleration in m s-2.