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:
line (xarray.Dataset) – A line from
get_line_edges()cell_field (xarray.DataArray) – A field with dimension
nCells
- Returns:
edge_field (xarray.DataArray) – The mean of the field in the two cells of each edge, with
nCellsreplaced bynLineEdges