LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+bd2ed33bd6,g1470d8bcf6+de7501a2e0,g14a832a312+ff425fae3c,g2079a07aa2+86d27d4dc4,g2305ad1205+91a32aca49,g295015adf3+762506a1ad,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+c34e8be1fa,g487adcacf7+5fae3daba8,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+ea1711114f,g5a732f18d5+53520f316c,g64a986408d+bd2ed33bd6,g858d7b2824+bd2ed33bd6,g8a8a8dda67+585e252eca,g99cad8db69+016a06b37a,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+09e12c87ab,gc120e1dc64+bc2e06c061,gc28159a63d+0e5473021a,gcf0d15dbbd+c34e8be1fa,gdaeeff99f8+f9a426f77a,ge6526c86ff+508d0e0a30,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf18bd8381d+8d59551888,gf1cff7945b+bd2ed33bd6,w.2024.16
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, statControl=None, **kwargs) | |
run (self, inputExp, ptc=None, overscanResults=None, **kwargs) | |
measureCti (self, inputExp, overscans, gains) | |
measureBanding (self, inputExp, overscans) | |
measureProjectionStatistics (self, inputExp, overscans) | |
copyCalibDistributionStatistics (self, inputExp, **kwargs) | |
measureBiasShifts (self, inputExp, overscanResults) | |
measureAmpCorrelations (self, inputExp, overscanResults) | |
measureDivisaderoStatistics (self, inputExp, **kwargs) | |
Static Public Member Functions | |
makeKernel (kernelSize) | |
Public Attributes | |
statControl | |
statType | |
Static Public Attributes | |
ConfigClass = IsrStatisticsTaskConfig | |
Protected Member Functions | |
_scan_for_shifts (self, overscanData) | |
_satisfies_flatness (self, shiftRow, shiftPeak, overscanData) | |
Static Protected Attributes | |
str | _DefaultName = "isrStatistics" |
Task to measure arbitrary statistics on ISR processed exposures. The goal is to wrap a number of optional measurements that are useful for calibration production and detector stability.
Definition at line 208 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.__init__ | ( | self, | |
statControl = None, | |||
** | kwargs ) |
Definition at line 217 of file isrStatistics.py.
|
protected |
Determine if a region is flat. Parameters ---------- shiftRow : `int` Row with possible peak. shiftPeak : `float` Value at the possible peak. overscanData : `list` [`float`] Overscan data used to fit around the possible peak. Returns ------- isFlat : `bool` Indicates if the region is flat, and so the peak is valid.
Definition at line 718 of file isrStatistics.py.
|
protected |
Scan overscan data for shifts. Parameters ---------- overscanData : `list` [`float`] Overscan data to search for shifts. Returns ------- noise : `float` Noise estimated from Butterworth filtered overscan data. peaks : `list` [`float`, `float`, `int`, `int`] Shift peak information, containing the convolved peak value, the raw peak value, and the lower and upper bounds of the region checked.
Definition at line 674 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.copyCalibDistributionStatistics | ( | self, | |
inputExp, | |||
** | kwargs ) |
Copy calibration statistics for this exposure. Parameters ---------- inputExp : `lsst.afw.image.Exposure` The exposure being processed. **kwargs : Keyword arguments with calibrations. Returns ------- outputStats : `dict` [`str`, [`dict` [`str`, `float`]]] Dictionary of measurements, keyed by amplifier name and statistics segment.
Definition at line 576 of file isrStatistics.py.
|
static |
Make a boxcar smoothing kernel. Parameters ---------- kernelSize : `int` Size of the kernel in pixels. Returns ------- kernel : `np.array` Kernel for boxcar smoothing.
Definition at line 422 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.measureAmpCorrelations | ( | self, | |
inputExp, | |||
overscanResults ) |
Measure correlations between amplifier segments. Parameters ---------- inputExp : `lsst.afw.image.Exposure` Exposure to measure. overscans : `list` [`lsst.pipe.base.Struct`] List of overscan results. Expected fields are: ``imageFit`` Value or fit subtracted from the amplifier image data (scalar or `lsst.afw.image.Image`). ``overscanFit`` Value or fit subtracted from the overscan image data (scalar or `lsst.afw.image.Image`). ``overscanImage`` Image of the overscan region with the overscan correction applied (`lsst.afw.image.Image`). This quantity is used to estimate the amplifier read noise empirically. Returns ------- outputStats : `dict` [`str`, [`dict` [`str`, `float`]]] Dictionary of measurements, keyed by amplifier name and statistics segment. Notes ----- Based on eo_pipe implementation: https://github.com/lsst-camera-dh/eo_pipe/blob/main/python/lsst/eo/pipe/raft_level_correlations.py # noqa: E501 W505
Definition at line 750 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.measureBanding | ( | self, | |
inputExp, | |||
overscans ) |
Task to measure banding statistics. Parameters ---------- inputExp : `lsst.afw.image.Exposure` Exposure to measure. overscans : `list` [`lsst.pipe.base.Struct`] List of overscan results. Expected fields are: ``imageFit`` Value or fit subtracted from the amplifier image data (scalar or `lsst.afw.image.Image`). ``overscanFit`` Value or fit subtracted from the overscan image data (scalar or `lsst.afw.image.Image`). ``overscanImage`` Image of the overscan region with the overscan correction applied (`lsst.afw.image.Image`). This quantity is used to estimate the amplifier read noise empirically. Returns ------- outputStats : `dict` [`str`, [`dict` [`str`, `float`]]] Dictionary of measurements, keyed by amplifier name and statistics segment.
Definition at line 441 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.measureBiasShifts | ( | self, | |
inputExp, | |||
overscanResults ) |
Measure number of bias shifts from overscan data. Parameters ---------- inputExp : `lsst.afw.image.Exposure` Exposure to measure. overscans : `list` [`lsst.pipe.base.Struct`] List of overscan results. Expected fields are: ``imageFit`` Value or fit subtracted from the amplifier image data (scalar or `lsst.afw.image.Image`). ``overscanFit`` Value or fit subtracted from the overscan image data (scalar or `lsst.afw.image.Image`). ``overscanImage`` Image of the overscan region with the overscan correction applied (`lsst.afw.image.Image`). This quantity is used to estimate the amplifier read noise empirically. Returns ------- outputStats : `dict` [`str`, [`dict` [`str`, `float`]]] Dictionary of measurements, keyed by amplifier name and statistics segment. Notes ----- Based on eop_pipe implementation: https://github.com/lsst-camera-dh/eo_pipe/blob/main/python/lsst/eo/pipe/biasShiftsTask.py # noqa: E501 W505
Definition at line 622 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.measureCti | ( | self, | |
inputExp, | |||
overscans, | |||
gains ) |
Task to measure CTI statistics. Parameters ---------- inputExp : `lsst.afw.image.Exposure` Exposure to measure. overscans : `list` [`lsst.pipe.base.Struct`] List of overscan results. Expected fields are: ``imageFit`` Value or fit subtracted from the amplifier image data (scalar or `lsst.afw.image.Image`). ``overscanFit`` Value or fit subtracted from the overscan image data (scalar or `lsst.afw.image.Image`). ``overscanImage`` Image of the overscan region with the overscan correction applied (`lsst.afw.image.Image`). This quantity is used to estimate the amplifier read noise empirically. gains : `dict` [`str` `float`] Dictionary of per-amplifier gains, indexed by amplifier name. Returns ------- outputStats : `dict` [`str`, [`dict` [`str`, `float`]]] Dictionary of measurements, keyed by amplifier name and statistics segment.
Definition at line 315 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.measureDivisaderoStatistics | ( | self, | |
inputExp, | |||
** | kwargs ) |
Measure Max Divisadero Tearing effect per amp. Parameters ---------- inputExp : `lsst.afw.image.Exposure` Exposure to measure. Usually a flat. **kwargs : The flat will be selected from here. Returns ------- outputStats : `dict` [`str`, [`dict` [`str`, `float`]]] Dictionary of measurements, keyed by amplifier name and statistics segment. Measurements include - DIVISADERO_PROFILE: Robust mean of rows between divisaderoProjection<Maximum|Minumum> on readout edge of ccd normalized by a linear fit to the same rows. - DIVISADERO_MAX_PAIR: Tuple of maximum of the absolute values of the DIVISADERO_PROFILE, for number of pixels (specified by divisaderoNumImpactPixels on left and right side of amp. - DIVISADERO_MAX: Maximum of the absolute values of the the DIVISADERO_PROFILE, for the divisaderoNumImpactPixels on boundaries of neighboring amps (including the pixels in those neighborboring amps).
Definition at line 817 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.measureProjectionStatistics | ( | self, | |
inputExp, | |||
overscans ) |
Task to measure metrics from image slicing. Parameters ---------- inputExp : `lsst.afw.image.Exposure` Exposure to measure. overscans : `list` [`lsst.pipe.base.Struct`] List of overscan results. Expected fields are: ``imageFit`` Value or fit subtracted from the amplifier image data (scalar or `lsst.afw.image.Image`). ``overscanFit`` Value or fit subtracted from the overscan image data (scalar or `lsst.afw.image.Image`). ``overscanImage`` Image of the overscan region with the overscan correction applied (`lsst.afw.image.Image`). This quantity is used to estimate the amplifier read noise empirically. Returns ------- outputStats : `dict` [`str`, [`dict` [`str`, `float`]]] Dictionary of measurements, keyed by amplifier name and statistics segment.
Definition at line 494 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.run | ( | self, | |
inputExp, | |||
ptc = None, | |||
overscanResults = None, | |||
** | kwargs ) |
Task to run arbitrary statistics. The statistics should be measured by individual methods, and add to the dictionary in the return struct. Parameters ---------- inputExp : `lsst.afw.image.Exposure` The exposure to measure. ptc : `lsst.ip.isr.PtcDataset`, optional A PTC object containing gains to use. overscanResults : `list` [`lsst.pipe.base.Struct`], optional List of overscan results. Expected fields are: ``imageFit`` Value or fit subtracted from the amplifier image data (scalar or `lsst.afw.image.Image`). ``overscanFit`` Value or fit subtracted from the overscan image data (scalar or `lsst.afw.image.Image`). ``overscanImage`` Image of the overscan region with the overscan correction applied (`lsst.afw.image.Image`). This quantity is used to estimate the amplifier read noise empirically. **kwargs : Keyword arguments. Calibrations being passed in should have an entry here. Returns ------- resultStruct : `lsst.pipe.base.Struct` Contains the measured statistics as a dict stored in a field named ``results``. Raises ------ RuntimeError Raised if the amplifier gains could not be found.
Definition at line 223 of file isrStatistics.py.
|
staticprotected |
Definition at line 215 of file isrStatistics.py.
|
static |
Definition at line 214 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.statControl |
Definition at line 219 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.statType |
Definition at line 221 of file isrStatistics.py.