AssembleCcdTask#
- class lsst.ip.isr.AssembleCcdTask(**kwargs)#
Bases:
TaskAssemble a set of amplifier images into a full detector size set of pixels.
The keys for removal specified in
lsst.ip.isr.AssembleCcdConfig.keysToRemoveare added to a default set: (‘DATASEC’, ‘BIASSEC’, ‘TRIMSEC’, ‘GAIN’).Methods Summary
assembleCcd(assembleInput)Assemble a set of amps into a single CCD size image.
postprocessExposure(outExposure, inExposure)Set exposure non-image attributes, including wcs and metadata and display exposure (if requested).
Methods Documentation
- assembleCcd(assembleInput)#
Assemble a set of amps into a single CCD size image.
Parameters#
- assembleInput
dict[str,lsst.afw.image.Exposure] orlsst.afw.image.Exposure Either a dictionary of amp exposures, or a single exposure containing all raw amps. If a dictionary of amp exposures, the key should be the amp name.
Returns#
- assembledCcd
lsst.afw.image.Exposure An exposure of the assembled amp sections.
Raises#
- TypeError
Raised if the input exposures to be assembled do not adhere to the required format.
- RuntimeError
Raised if the detector set on the input exposure is not set.
- assembleInput
- postprocessExposure(outExposure, inExposure)#
Set exposure non-image attributes, including wcs and metadata and display exposure (if requested).
Call after assembling the pixels.
Parameters#
- outExposure
lsst.afw.image.Exposure The exposure to modify by copying metadata (after removing unwanted keywords), wcs, filter, and detector from
inExposure.- inExposure
lsst.afw.image.Exposure The input exposure providing metadata, wcs, filter, and detector.
- outExposure