nctoolkit.DataSet.resample_grid

nctoolkit.DataSet.resample_grid#

DataSet.resample_grid(factor=None)#

resample_grid: Resample the horizontal grid of a dataset

Parameters:

factor (int) – The resampling factor. Must be a positive integer. No interpolation occurs. Example: factor of 2 will sample every other grid cell

Examples

If you wanted to select every other grid cell, you could do the following:

>>> ds.resample_grid(2)