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 withTimeandnVertLevelslayer_thickness (xarray.DataArray) – The layer thickness (m) with dimension
nCellsand the same other dimensions asnormal_velocity
- Returns:
transport (xarray.DataArray) – The transport (m3 s-1) toward increasing
line.coordthrough each edge of the line, withnEdgesreplaced bynLineEdges