LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Assemble a set of amplifier images into a full detector size set of pixels. More...
Public Member Functions | |
def | __init__ |
Initialize the AssembleCcdTask. More... | |
def | assembleCcd |
Assemble a set of amps into a single CCD size image. More... | |
def | postprocessExposure |
def | setWcs |
def | setGain |
Public Attributes | |
allKeysToRemove | |
Static Public Attributes | |
ConfigClass = AssembleCcdConfig | |
Static Private Attributes | |
string | _DefaultName = "assembleCcd" |
Assemble a set of amplifier images into a full detector size set of pixels.
This task assembles sections of an image into a larger mosaic. The sub-sections are typically amplifier sections and are to be assembled into a detector size pixel grid. The assembly is driven by the entries in the raw amp information. The task can be configured to return a detector image with non-data (e.g. overscan) pixels included. The task can also renormalize the pixel values to a nominal gain of 1. The task also removes exposure metadata that has context in raw amps, but not in trimmed detectors (e.g. 'BIASSEC').
Initialize the AssembleCcdTask. The keys for removal specified in the config are added to a default set: ('DATASEC', 'BIASSEC', 'TRIMSEC', 'GAIN')
Assemble a set of amps into a single CCD size image.
[in] | assembleInput | – Either a dictionary of amp lsst.afw.image.Exposures or a single lsst.afw.image.Exposure containing all raw amps. If a dictionary of amp exposures, the key should be the amp name. |
TypeError | with the following string: |
RuntimeError | with the following string: |
The command line task interface supports a flag -d
to import debug.py from your PYTHONPATH
; see Using lsstDebug to control debugging output for more about debug.py files.
The available variables in AssembleCcdTask are:
display
This code is in runAssembleTask.py in the examples directory, and can be run as e.g.
Import the task. There are other imports. Read the source file for more info.To investigate the Debug variables, put something like
into your debug.py file and run runAssembleTask.py with the –debug
flag.
Conversion notes: Display code should be updated once we settle on a standard way of controlling what is displayed.
Definition at line 60 of file assembleCcdTask.py.
def lsst.ip.isr.assembleCcdTask.AssembleCcdTask.__init__ | ( | self, | |
kwargs | |||
) |
Initialize the AssembleCcdTask.
The keys for removal specified in the config are added to a default set: ('DATASEC', 'BIASSEC', 'TRIMSEC', 'GAIN')
Definition at line 157 of file assembleCcdTask.py.
def lsst.ip.isr.assembleCcdTask.AssembleCcdTask.assembleCcd | ( | self, | |
assembleInput | |||
) |
Assemble a set of amps into a single CCD size image.
[in] | assembleInput | – Either a dictionary of amp lsst.afw.image.Exposures or a single lsst.afw.image.Exposure containing all raw amps. If a dictionary of amp exposures, the key should be the amp name. |
TypeError | with the following string: |
RuntimeError | with the following string: |
Definition at line 167 of file assembleCcdTask.py.
def lsst.ip.isr.assembleCcdTask.AssembleCcdTask.postprocessExposure | ( | self, | |
outExposure, | |||
inExposure | |||
) |
Set exposure non-image attributes, including wcs and metadata and display exposure (if requested) Call after assembling the pixels @param[in,out] outExposure assembled exposure: - removes unwanted keywords - sets calib, filter, and detector @param[in] inExposure input exposure
Definition at line 227 of file assembleCcdTask.py.
def lsst.ip.isr.assembleCcdTask.AssembleCcdTask.setGain | ( | self, | |
outExposure | |||
) |
Renormalize, if requested, and set gain metadata @param[in,out] outExposure assembled exposure: - scales the pixels if config.doRenorm is true - adds some gain keywords to the metadata
Definition at line 274 of file assembleCcdTask.py.
def lsst.ip.isr.assembleCcdTask.AssembleCcdTask.setWcs | ( | self, | |
outExposure, | |||
inExposure | |||
) |
Set output WCS = input WCS, adjusted as required for datasecs not starting at lower left corner @param[in,out] outExposure assembled exposure; wcs is set @param[in] inExposure input exposure
Definition at line 257 of file assembleCcdTask.py.
|
staticprivate |
Definition at line 155 of file assembleCcdTask.py.
lsst.ip.isr.assembleCcdTask.AssembleCcdTask.allKeysToRemove |
Definition at line 165 of file assembleCcdTask.py.
|
static |
Definition at line 154 of file assembleCcdTask.py.