LSST Applications
21.0.0-131-g8cabc107+528f53ee53,22.0.0+00495a2688,22.0.0+0ef2527977,22.0.0+11a2aa21cd,22.0.0+269b7e55e3,22.0.0+2c6b6677a3,22.0.0+64c1bc5aa5,22.0.0+7b3a3f865e,22.0.0+e1b6d2281c,22.0.0+ff3c34362c,22.0.1-1-g1b65d06+c95cbdf3df,22.0.1-1-g7058be7+1cf78af69b,22.0.1-1-g7dab645+2a65e40b06,22.0.1-1-g8760c09+64c1bc5aa5,22.0.1-1-g949febb+64c1bc5aa5,22.0.1-1-ga324b9c+269b7e55e3,22.0.1-1-gf9d8b05+ff3c34362c,22.0.1-10-g781e53d+9b51d1cd24,22.0.1-10-gba590ab+b9624b875d,22.0.1-13-g76f9b8d+2c6b6677a3,22.0.1-14-g22236948+57af756299,22.0.1-18-g3db9cf4b+9b7092c56c,22.0.1-18-gb17765a+2264247a6b,22.0.1-2-g8ef0a89+2c6b6677a3,22.0.1-2-gcb770ba+c99495d3c6,22.0.1-24-g2e899d296+4206820b0d,22.0.1-3-g7aa11f2+2c6b6677a3,22.0.1-3-g8c1d971+f253ffa91f,22.0.1-3-g997b569+ff3b2f8649,22.0.1-4-g1930a60+6871d0c7f6,22.0.1-4-g5b7b756+6b209d634c,22.0.1-6-ga02864e+6871d0c7f6,22.0.1-7-g3402376+a1a2182ac4,22.0.1-7-g65f59fa+54b92689ce,master-gcc5351303a+e1b6d2281c,w.2021.32
LSST Data Management Base Package
|
Public Member Functions | |
def | runQuantum (self, butlerQC, inputRefs, outputRefs) |
def | run (self, inputMDs, inputDims, camera) |
def | measureScales (self, bgMatrix, bgCounts=None, iterations=10) |
Static Public Attributes | |
ConfigClass = CpFlatNormalizationTaskConfig | |
Rescale merged flat frames to remove unequal screen illumination.
Definition at line 182 of file cpFlatNormTask.py.
def lsst.cp.pipe.cpFlatNormTask.CpFlatNormalizationTask.measureScales | ( | self, | |
bgMatrix, | |||
bgCounts = None , |
|||
iterations = 10 |
|||
) |
Convert backgrounds to exposure and detector components. Parameters ---------- bgMatrix : `np.ndarray`, (nDetectors, nExposures) Input backgrounds indexed by exposure (axis=0) and detector (axis=1). bgCounts : `np.ndarray`, (nDetectors, nExposures), optional Input pixel counts used to in measuring bgMatrix, indexed identically. iterations : `int`, optional Number of iterations to use in decomposition. Returns ------- scaleResult : `lsst.pipe.base.Struct` Result struct containing fields: ``vectorE`` Output E vector of exposure level scalings (`np.array`, (nExposures)). ``vectorG`` Output G vector of detector level scalings (`np.array`, (nExposures)). ``bgModel`` Expected model bgMatrix values, calculated from E and G (`np.ndarray`, (nDetectors, nExposures)). Notes ----- The set of background measurements B[exposure, detector] of flat frame data should be defined by a "Cartesian" product of two vectors, E[exposure] and G[detector]. The E vector represents the total flux incident on the focal plane. In a perfect camera, this is simply the sum along the columns of B (np.sum(B, axis=0)). However, this simple model ignores differences in detector gains, the vignetting of the detectors, and the illumination pattern of the source lamp. The G vector describes these detector dependent differences, which should be identical over different exposures. For a perfect lamp of unit total intensity, this is simply the sum along the rows of B (np.sum(B, axis=1)). This algorithm divides G by the total flux level, to provide the relative (not absolute) scales between detectors. The algorithm here, from pipe_drivers/constructCalibs.py and from there from Eugene Magnier/PanSTARRS [1]_, attempts to iteratively solve this decomposition from initial "perfect" E and G vectors. The operation is performed in log space to reduce the multiply and divides to linear additions and subtractions. References ---------- .. [1] https://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/browser/trunk/psModules/src/detrend/pmFlatNormalize.c # noqa: E501
Definition at line 316 of file cpFlatNormTask.py.
def lsst.cp.pipe.cpFlatNormTask.CpFlatNormalizationTask.run | ( | self, | |
inputMDs, | |||
inputDims, | |||
camera | |||
) |
Normalize FLAT exposures to a consistent level. Parameters ---------- inputMDs : `list` [`lsst.daf.base.PropertyList`] Amplifier-level metadata used to construct scales. inputDims : `list` [`dict`] List of dictionaries of input data dimensions/values. Each list entry should contain: ``"exposure"`` exposure id value (`int`) ``"detector"`` detector id value (`int`) Returns ------- outputScales : `dict` [`dict` [`dict` [`float`]]] Dictionary of scales, indexed by detector (`int`), amplifier (`int`), and exposure (`int`). Raises ------ KeyError Raised if the input dimensions do not contain detector and exposure, or if the metadata does not contain the expected statistic entry.
Definition at line 200 of file cpFlatNormTask.py.
def lsst.cp.pipe.cpFlatNormTask.CpFlatNormalizationTask.runQuantum | ( | self, | |
butlerQC, | |||
inputRefs, | |||
outputRefs | |||
) |
Definition at line 189 of file cpFlatNormTask.py.
|
static |
Definition at line 186 of file cpFlatNormTask.py.