- DataSet.box_sum(x=1, y=1)#
box_sum: Calculate the grid box sum for all variables.
This is performed for each time step.
x (int) – Number of boxes in the x, e.g. east-west direction
y (int or float) – Number of boxes in the y, e.g. north-south direction
If you want to calculate the sum in each 4 by 4 box:
>>> ds.box_sum(x=4, y=4)