integral

integral(fs)

Computes the surface integral of each field in fs.

Parameters

fs (Fieldset) – input fieldset

Return type

number or ndarray

The result is either a number (for one input field) or an ndarray (for multiple input fields). The computations are based on the cell area (in m2 units) returned by grid_cell_area().