BinImageDataTask#
- class lsst.ip.isr.BinImageDataTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#
Bases:
PipelineTaskPerform an nxn binning of an image or image-like dataset.
The binning factor is the same in both spatial dimensions (i.e., an nxn binning is performed). In the case of MaskedImages and Exposures, each of the input image planes are binned by the same factor.
Methods Summary
run(inputData[, binFactor])Perform an nxn binning of image and image-like data.
Methods Documentation
- run(inputData, binFactor=None)#
Perform an nxn binning of image and image-like data.
Parameters:#
- inputData
lsst.afw.image.Imageorlsst.afw.image.MaskedImageor lsst.afw.image.Exposureor one of their sub-types.Data to spatially bin
- binFactor
int, optional. nxn binning factor. If not provided then self.config.binFactor is used.
Returns:#
- result
lsst.pipe.base.Struct Results as a struct with attributes:
outputDataBinned data (
lsst.afw.image.Imageorlsst.afw.image.MaskedImageorlsst.afw.image.Exposureor one of their sub-types. The type matches that of the input.).
- inputData