nctoolkit.DataSet.spatial_sum

DataSet.spatial_sum(self, by_area=False)

Calculate the spatial sum for all variables This is performed for each time step.

Parameters

by_area (boolean) – Set to True if you want to multiply the values by the grid cell area before summing over space. Default is False.