AmpOffsetConfig#
- class lsst.ip.isr.AmpOffsetConfig(*args, **kw)#
Bases:
ConfigConfiguration parameters for AmpOffsetTask.
Attributes Summary
Number of pixels the amp edge strip is inset from the amp edge.
Maximum allowed amp offset ADU value.
Minimum allowed fraction of viable pixel rows along an amp edge.
Pixel width of the amp edge strip, starting at ampEdgeInset and extending inwards.
Fraction of the amp edge lengths utilized as the sliding window for generating rolling average amp offset values.
Weights the amp offset calculation by the length of the interface between amplifiers.
An initial background estimation step run prior to amp offset calculation.
The fraction of the shorter side of the amplifier used for background binning.
Source detection to add temporary detection footprints prior to amp offset calculation.
Apply amp offset corrections to the input exposure? (
bool, defaultFalse)Estimate and subtract background prior to amp offset estimation? (
bool, defaultTrue)Detect sources and update cloned exposure prior to amp offset estimation? (
bool, defaultTrue)Smooth amp edge differences by taking a rolling average.
Methods Summary
Subclass hook for computing defaults.
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- ampEdgeInset#
Number of pixels the amp edge strip is inset from the amp edge. A thin strip of pixels running parallel to the edge of the amp is used to characterize the average flux level at the amp edge. (
int, default5)
- ampEdgeMaxOffset#
Maximum allowed amp offset ADU value. If a measured amp offset value is larger than this, the result will be discarded and therefore not used to determine amp pedestal corrections. (
float, default5.0)
- ampEdgeMinFrac#
Minimum allowed fraction of viable pixel rows along an amp edge. No amp offset estimate will be generated for amp edges that do not have at least this fraction of unmasked pixel rows. (
float, default0.5)
- ampEdgeWidth#
Pixel width of the amp edge strip, starting at ampEdgeInset and extending inwards. (
int, default64)
- ampEdgeWindowFrac#
Fraction of the amp edge lengths utilized as the sliding window for generating rolling average amp offset values. It should be reconfigured for every instrument (HSC, LSSTCam, etc.) and should not exceed 1. If not provided, it defaults to the fraction that recovers the pixel size of the sliding window used in obs_subaru for compatibility with existing HSC data. Only relevant if
doWindowSmoothingis set to True. (float, default0.12260536398467432)
- applyWeights#
Weights the amp offset calculation by the length of the interface between amplifiers. Applying weights does not affect outcomes for amplifiers in a 2D grid with square-shaped amplifiers or in any 1D layout on a detector, regardless of whether the amplifiers are square. (
bool, defaultTrue)
- background#
An initial background estimation step run prior to amp offset calculation. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.subtractBackground.SubtractBackgroundConfig'>)
- backgroundFractionSample#
The fraction of the shorter side of the amplifier used for background binning. (
float, default1.0)
- detection#
Source detection to add temporary detection footprints prior to amp offset calculation. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.detection.SourceDetectionConfig'>)
- doApplyAmpOffset#
Apply amp offset corrections to the input exposure? (
bool, defaultFalse)
- doBackground#
Estimate and subtract background prior to amp offset estimation? (
bool, defaultTrue)
- doDetection#
Detect sources and update cloned exposure prior to amp offset estimation? (
bool, defaultTrue)
- doWindowSmoothing#
Smooth amp edge differences by taking a rolling average. (
bool, defaultTrue)
Methods Documentation
- setDefaults()#
Subclass hook for computing defaults.
Notes#
Derived
Configclasses that must compute defaults rather than using theFieldinstances’s defaults should do so here. To correctly use inherited defaults, implementations ofsetDefaultsmust call their base class’ssetDefaults.
- validate()#
Validate the Config, raising an exception if invalid.
Raises#
- lsst.pex.config.FieldValidationError
Raised if verification fails.
Notes#
The base class implementation performs type checks on all fields by calling their
validatemethods.Complex single-field validation can be defined by deriving new Field types. For convenience, some derived
lsst.pex.config.Field-types (ConfigFieldandConfigChoiceField) are defined inlsst.pex.configthat handle recursing into subconfigs.Inter-field relationships should only be checked in derived
Configclasses after calling this method, and base validation is complete.