polaris.ocean.overturning.compute_line_transport

polaris.ocean.overturning.compute_line_transport(line: Dataset, normal_velocity: DataArray, layer_thickness: DataArray) → DataArray[source]

Compute the transport across a line in each layer of each edge

The flux thickness on each edge is the mean of the layer thicknesses of its two cells, the default in both MPAS-Ocean and Omega. For Omega, pass the pseudo-thickness, which makes the transport a mass transport divided by a reference density.

Parameters:
  • line (xarray.Dataset) – A line from get_line_edges()

  • normal_velocity (xarray.DataArray) – The normal velocity (m s-1) with dimension nEdges, typically also with Time and nVertLevels

  • layer_thickness (xarray.DataArray) – The layer thickness (m) with dimension nCells and the same other dimensions as normal_velocity

Returns:

transport (xarray.DataArray) – The transport (m3 s-1) toward increasing line.coord through each edge of the line, with nEdges replaced by nLineEdges