Perform ISR task using Community Pipeline Calibration Products MasterCal.
The CP MasterCal products have butler dataset types cpBias and cpFlat,
different from the LSST-generated calibration products (bias/flat).
Definition at line 65 of file decamCpIsr.py.
def lsst.obs.decam.decamCpIsr.DecamCpIsrTask.flatCorrection |
( |
|
self, |
|
|
|
exposure, |
|
|
|
flatExposure |
|
) |
| |
Apply flat correction in place.
DECam flat products have been trimmed and are smaller than
the raw exposure. The size of edge trim is computed based
on the dimensions of the input data. Only process the inner
part of the raw exposure, and mask the outer pixels as EDGE.
Parameters
----------
exposure : `lsst.afw.image.Exposure`
Exposure to process.
flatExposure : `lsst.afw.image.Exposure`
Flatfield exposure.
Definition at line 101 of file decamCpIsr.py.
102 """Apply flat correction in place. 104 DECam flat products have been trimmed and are smaller than 105 the raw exposure. The size of edge trim is computed based 106 on the dimensions of the input data. Only process the inner 107 part of the raw exposure, and mask the outer pixels as EDGE. 111 exposure : `lsst.afw.image.Exposure` 113 flatExposure : `lsst.afw.image.Exposure` 116 nEdge = _computeEdgeSize(exposure, flatExposure)
118 rawMaskedImage = exposure.maskedImage[nEdge:-nEdge, nEdge:-nEdge, LOCAL]
120 rawMaskedImage = exposure.getMaskedImage()
123 flatExposure.getMaskedImage(),
124 self.config.flatScalingType,
125 self.config.flatUserScale
128 SourceDetectionTask.setEdgeBits(
129 exposure.getMaskedImage(),
130 rawMaskedImage.getBBox(),
131 exposure.getMaskedImage().getMask().getPlaneBitMask(
"EDGE")
133 def flatCorrection(maskedImage, flatMaskedImage, scalingType, userScale=1.0, invert=False, trimToFit=False)
◆ ConfigClass
The documentation for this class was generated from the following file:
- /j/snowflake/release/lsstsw/stack/Linux64/obs_decam/18.1.0/python/lsst/obs/decam/decamCpIsr.py