AssembleCcdTask#

class lsst.ip.isr.AssembleCcdTask(**kwargs)#

Bases: Task

Assemble a set of amplifier images into a full detector size set of pixels.

The keys for removal specified in lsst.ip.isr.AssembleCcdConfig.keysToRemove are 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#

assembleInputdict [str, lsst.afw.image.Exposure] or lsst.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#

assembledCcdlsst.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.

postprocessExposure(outExposure, inExposure)#

Set exposure non-image attributes, including wcs and metadata and display exposure (if requested).

Call after assembling the pixels.

Parameters#

outExposurelsst.afw.image.Exposure

The exposure to modify by copying metadata (after removing unwanted keywords), wcs, filter, and detector from inExposure.

inExposurelsst.afw.image.Exposure

The input exposure providing metadata, wcs, filter, and detector.