LSST Applications g07dc498a13+7851b72aa9,g1409bbee79+7851b72aa9,g1a7e361dbc+7851b72aa9,g1fd858c14a+a4e18a0dda,g33399d78f5+a0324bbf49,g35bb328faa+e55fef2c71,g3bd4b5ce2c+8524b1c0c8,g53246c7159+e55fef2c71,g579b87e3d2+a58ba40925,g60b5630c4e+7b4465799a,g78460c75b0+8427c4cc8f,g78619a8342+5517f7db9e,g786e29fd12+307f82e6af,g8534526c7b+8e1c6b434f,g89139ef638+7851b72aa9,g8b49a6ea8e+7b4465799a,g8ffcb69f3d+0065d7bbc8,g9125e01d80+e55fef2c71,g97b8272a79+a8c4cb337e,g989de1cb63+7851b72aa9,g9f33ca652e+747bd1f1f9,gaaedd4e678+7851b72aa9,gabe3b4be73+9c0c3c7524,gb1101e3267+c03a154bbb,gb58c049af0+28045f66fd,gc1fe0db326+7b4465799a,gca43fec769+e55fef2c71,gce7788e931+99adca4f64,gcf25f946ba+a0324bbf49,gd397e13551+18f805d5e0,gd6cbbdb0b4+f6e5445f66,gde0f65d7ad+78b6ec8427,ge278dab8ac+b4c2c8faf7,geab183fbe5+7b4465799a,gecb8035dfe+1f480bec5e,gf58bf46354+e55fef2c71,gf92a8ffd38+e7bc33f3ea,gfe7187db8c+38a2c5c626,w.2025.03
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 213 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.__init__ | ( | self, | |
statControl = None, | |||
** | kwargs ) |
Definition at line 222 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 737 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 693 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 595 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 441 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 769 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 460 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 641 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 (expects base units of adu). 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. Everything in units based on electron.
Definition at line 320 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 836 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 513 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 228 of file isrStatistics.py.
|
staticprotected |
Definition at line 220 of file isrStatistics.py.
|
static |
Definition at line 219 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.statControl |
Definition at line 224 of file isrStatistics.py.
lsst.ip.isr.isrStatistics.IsrStatisticsTask.statType |
Definition at line 226 of file isrStatistics.py.