rebin¶
- kgpy.rebin(arr, scale_dims)¶
Increases the size of an array by scale_dims in each i dimension by repeating each value scale_dims[i] times along that axis.
- Parameters:
arr (
numpy.ndarray) – Array to modifyscale_dims (
typing.Tuple[int,...]) – Tuple with lengtharr.ndimspecifying the size increase in each axis.
- Return type:
- Returns:
The resized array