nctoolkit.DataSet.zonal_sum
- DataSet.zonal_sum(by_area=False)
zonal_sum: Calculate the zonal sum for each time step
- Parameters:
by_area (bool) – Set to True if you want the cell value to be multiplied by the cell area prior to summing
Examples
If you want to calculate the zonal sum for a dataset, do the following:
>>> ds.zonal_sum()