nctoolkit.DataSet.box_max

nctoolkit.DataSet.box_max#

DataSet.box_max(x=1, y=1)#

box_max: Calculate the grid box max for all variables.

This is performed for each time step.

Parameters:
  • 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

Examples

If you want to calculate the max in each 4 by 4 box:

>>> ds.box_max(x=4, y=4)