nctoolkit.DataSet.reduce_grid

DataSet.reduce_grid(mask=None)

reduce_grid: Reduce the dataset to non-zero locations in a mask

Parameters:

mask (str or dataset) – single variable dataset or path to .nc file. The mask must have an identical grid to the dataset.