- DatasetCoarsen.reduce(func, keep_attrs=None, **kwargs)#
Reduce the items in this group by applying func along some dimension(s).
callable()) – Function which can be called in the form func(x, axis, **kwargs) to return the result of collapsing an np.ndarray over the coarsening dimensions. It must be possible to provide the axis argument with a tuple of integers.
None) – If True, the attributes (
attrs) will be copied from the original object to the new one. If False, the new object will be returned without attributes. If None uses the global default.
dict) – Additional keyword arguments passed on to func.
Dataset) – Arrays with summarized data.