nctoolkit.DataSet.box_range

nctoolkit.DataSet.box_range#

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

box_range: Calculate the grid box range 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 range in each 4 by 4 box:

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