nctoolkit.DataSet.resample_grid

DataSet.resample_grid(self, factor=None)

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)