polaris.tasks.ocean.horiz_press_grad.edge.edge_delta

polaris.tasks.ocean.horiz_press_grad.edge.edge_delta(field: DataArray) → DataArray[source]

The two-column edge difference Delta_e f = f_1 - f_0, the numerator of the TRiSK gradient operator for the single internal edge.

Parameters:

field (xarray.DataArray) – A field with an nCells dimension of size 2.

Returns:

delta (xarray.DataArray) – The difference, with nCells contracted away.