scipp.rebin
scipp.rebin#
- scipp.rebin(x, dim, bins)#
Rebin a dimension of a data array or dataset.
The input must contain bin edges for the given dimension dim.
If the input has masks that contain the dimension being rebinned then those masks are applied to the data before rebinning. That is, masked values are treated as zero.