- DataSet.box_mean(x=1, y=1)#
box_mean: Calculate the grid box mean 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 mean in each 4 by 4 box:
>>> ds.box_mean(x=4, y=4)