prtools.rebin# rebin(x, factor)[source]# Rebin an array by an integer factor. Parameters: x (array_like) – Array or cube of arrays to rebin. If a cube is provided, the first dimension should index the image slices. factor (int) – Rebinning factor Returns: x – Rebinned array Return type: ndarray See also rescale()