binArray

lsst.ts.wep.utils.binArray(array: ndarray, binning: int) ndarray

Bin a 2d array by averaging over non-overlapping blocks.

Parameters

arraynp.ndarray

The 2d array to be binned

binningint

The binning factor

Returns

np.ndarray

The binned array