binImageData#

lsst.ip.isr.binImageData(inputData, binFactor=8)#

Bin image and image-like data to reduce its spatial dimensions.

Performs an nxn binning of the input data, reducing both spatial dimensions of each of the input image data by the provided factor.

Parameters:#

inputData: lsst.afw.image.Image or lsst.afw.image.MaskedImage or

lsst.afw.image.Exposure or one of their sub-types.

Input data to bin.

binFactor: int

Binning factor to apply to each input exposure’s image data. Default 8.

Returns:#

binnedImage or binnedExposure: lsst.afw.image.Image or

lsst.afw.image.MaskedImage or lsst.afw.image.Exposure or one of their sub-types. Binned version of input image.

Raises#

TypeError

Raised if either the binning factor is not of type int, or if the input data to be binned is not of type lsst.afw.image.Exposure or one of its sub-types.