polaris.ocean.overturning.interp_cell_to_line_edges

polaris.ocean.overturning.interp_cell_to_line_edges(line: Dataset, cell_field: DataArray) → DataArray[source]

Average a cell field to the edges of a line

Parameters:
Returns:

edge_field (xarray.DataArray) – The mean of the field in the two cells of each edge, with nCells replaced by nLineEdges