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.Imageorlsst.afw.image.MaskedImageor lsst.afw.image.Exposureor 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.Imageor lsst.afw.image.MaskedImageorlsst.afw.image.Exposureor 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 typelsst.afw.image.Exposureor one of its sub-types.
- inputData: