polaris.tasks.ocean.horiz_press_grad.finite_volume.matched_pressure_pieces
- polaris.tasks.ocean.horiz_press_grad.finite_volume.matched_pressure_pieces(ds: Dataset, guards: set[str] | None = None) dict[source]
Everything the matched-pressure integrand needs, computed once per state.
- Parameters:
ds (xarray.Dataset) – The two-column state, which must contain
temperature,salinity,pressure,ZTildeInterfaceandmaxLevelCell.- Returns:
pieces (dict) –
expansion(the edge-shared coefficients per edge layer),theta/salinityand their reconstructionslope``s and ``pressure_mid, each column’sinterfacepressures and itsdeepestvalid layer, and the edge-layer interface pressuresedge_interface.