uxarray.grid.Grid.integrate#
- Grid.integrate(var_ds, quadrature_rule='triangular', order=4)#
Integrates over all the faces of the given mesh.
- Parameters:
- Returns:
Calculated integral
- Return type:
Examples
Open grid file only
>>> xr_grid = xr.open_dataset("grid.ug") >>> grid = ux.Grid.(xr_grid) >>> var_ds = xr.open_dataset("centroid_pressure_data_ug")
# Compute the integral >>> integral_psi = grid.integrate(var_ds)