nctoolkit.DataSet.reduce_grid

DataSet.reduce_grid(self, mask)

Reduce the dataset to non-zero locations in a mask :param mask: single variable dataset or path to .nc file. The mask must have an identical grid to the dataset. :type mask: str or dataset