oceanspy.compute.integral

oceanspy.compute.integral(od, varNameList=None, axesList=None, aliased=True)[source]

Compute integrals along specified axes (simple discretization).

\[I = \int \cdots \int \chi \; d x_1 \cdots d x_n\]
Parameters
od: OceanDataset

oceandataset used to compute.

varNameList: 1D array_like, str, or None

Name of variables to integrate. If None, use all variables.

axesList: None, list

List of axes. If None, compute integral along all axes.

aliased: bool

Set it False when working with private ds and grid.

Returns
ds: xarray.Dataset
I([varName])d[axis]

See also

weighted_mean