LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+f5613e8b4f,g1470d8bcf6+190ad2ba91,g14a832a312+311607e4ab,g2079a07aa2+86d27d4dc4,g2305ad1205+a8e3196225,g295015adf3+b67ee847e5,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+a761f810f3,g487adcacf7+17c8fdbcbd,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+65b5bd823e,g5a732f18d5+53520f316c,g64a986408d+f5613e8b4f,g6c1bc301e9+51106c2951,g858d7b2824+f5613e8b4f,g8a8a8dda67+585e252eca,g99cad8db69+6729933424,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+e9bba80f27,gc120e1dc64+eee469a5e5,gc28159a63d+0e5473021a,gcf0d15dbbd+a761f810f3,gdaeeff99f8+f9a426f77a,ge6526c86ff+d4c1d4bfef,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf1cff7945b+f5613e8b4f,w.2024.16
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig Class Reference
Inheritance diagram for lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig:
lsst.pex.config.config.Config lsst.pex.config.config.ConfigMeta lsst.ip.diffim.subtractImages.AlardLuptonPreconvolveSubtractConfig lsst.ip.diffim.subtractImages.AlardLuptonSubtractConfig

Public Member Functions

 setDefaults (self)
 

Static Public Attributes

 makeKernel
 
 doDecorrelation
 
 decorrelate
 
 requiredTemplateFraction
 
 minTemplateFractionForExpectedSuccess
 
 doScaleVariance
 
 scaleVariance
 
 doSubtractBackground
 
 doApplyExternalCalibrations
 
 detectionThreshold
 
 detectionThresholdMax
 
 maxKernelSources
 
 minKernelSources
 
 badSourceFlags
 
 excludeMaskPlanes
 
 badMaskPlanes
 
 preserveTemplateMask
 
 renameTemplateMask
 
 allowKernelSourceDetection
 

Detailed Description

Definition at line 127 of file subtractImages.py.

Member Function Documentation

◆ setDefaults()

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.setDefaults ( self)
Subclass hook for computing defaults.

Notes
-----
Derived `~lsst.pex.config.Config` classes that must compute defaults
rather than using the `~lsst.pex.config.Field` instances's defaults
should do so here. To correctly use inherited defaults,
implementations of ``setDefaults`` must call their base class's
``setDefaults``.

Reimplemented from lsst.pex.config.config.Config.

Definition at line 239 of file subtractImages.py.

239 def setDefaults(self):
240 self.makeKernel.kernel.name = "AL"
241 self.makeKernel.kernel.active.fitForBackground = self.doSubtractBackground
242 self.makeKernel.kernel.active.spatialKernelOrder = 1
243 self.makeKernel.kernel.active.spatialBgOrder = 2
244
245

Member Data Documentation

◆ allowKernelSourceDetection

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.allowKernelSourceDetection
static
Initial value:
dtype=bool,
default=False,
doc="Re-run source detection for kernel candidates if an error is"
" encountered while calculating the matching kernel."
)

Definition at line 232 of file subtractImages.py.

◆ badMaskPlanes

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.badMaskPlanes
static
Initial value:
dtype=str,
default=("NO_DATA", "BAD", "SAT", "EDGE"),
doc="Mask planes to interpolate over."
)

Definition at line 216 of file subtractImages.py.

◆ badSourceFlags

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.badSourceFlags
static
Initial value:
dtype=str,
doc="Flags that, if set, the associated source should not "
"be used to determine the PSF matching kernel.",
default=("sky_source", "slot_Centroid_flag",
"slot_ApFlux_flag", "slot_PsfFlux_flag",
"base_PixelFlags_flag_interpolated",
"base_PixelFlags_flag_saturated",
"base_PixelFlags_flag_bad",
),
)

Definition at line 200 of file subtractImages.py.

◆ decorrelate

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.decorrelate
static
Initial value:
target=DecorrelateALKernelTask,
doc="Task to decorrelate the image difference.",
)

Definition at line 138 of file subtractImages.py.

◆ detectionThreshold

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.detectionThreshold
static
Initial value:
dtype=float,
default=10,
doc="Minimum signal to noise ratio of detected sources "
"to use for calculating the PSF matching kernel."
)

Definition at line 177 of file subtractImages.py.

◆ detectionThresholdMax

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.detectionThresholdMax
static
Initial value:
dtype=float,
default=500,
doc="Maximum signal to noise ratio of detected sources "
"to use for calculating the PSF matching kernel."
)

Definition at line 183 of file subtractImages.py.

◆ doApplyExternalCalibrations

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.doApplyExternalCalibrations
static
Initial value:
doc=(
"Replace science Exposure's calibration objects with those"
" in visitSummary. Ignored if `doApplyFinalizedPsf is True."
),
dtype=bool,
default=False,
)

Definition at line 169 of file subtractImages.py.

◆ doDecorrelation

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.doDecorrelation
static
Initial value:
dtype=bool,
default=True,
doc="Perform diffim decorrelation to undo pixel correlation due to A&L "
"kernel convolution? If True, also update the diffim PSF."
)

Definition at line 132 of file subtractImages.py.

◆ doScaleVariance

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.doScaleVariance
static
Initial value:
dtype=bool,
default=True,
doc="Scale variance of the image difference?"
)

Definition at line 155 of file subtractImages.py.

◆ doSubtractBackground

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.doSubtractBackground
static
Initial value:
doc="Subtract the background fit when solving the kernel?",
dtype=bool,
default=True,
)

Definition at line 164 of file subtractImages.py.

◆ excludeMaskPlanes

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.excludeMaskPlanes
static
Initial value:
dtype=str,
default=("NO_DATA", "BAD", "SAT", "EDGE", "FAKE"),
doc="Mask planes to exclude when selecting sources for PSF matching."
)

Definition at line 211 of file subtractImages.py.

◆ makeKernel

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.makeKernel
static
Initial value:
target=MakeKernelTask,
doc="Task to construct a matching kernel for convolution.",
)

Definition at line 128 of file subtractImages.py.

◆ maxKernelSources

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.maxKernelSources
static
Initial value:
dtype=int,
default=1000,
doc="Maximum number of sources to use for calculating the PSF matching kernel."
"Set to -1 to disable."
)

Definition at line 189 of file subtractImages.py.

◆ minKernelSources

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.minKernelSources
static
Initial value:
dtype=int,
default=3,
doc="Minimum number of sources needed for calculating the PSF matching kernel."
)

Definition at line 195 of file subtractImages.py.

◆ minTemplateFractionForExpectedSuccess

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.minTemplateFractionForExpectedSuccess
static
Initial value:
dtype=float,
default=0.2,
doc="Raise NoWorkFound if PSF-matching fails and template covers less than this fraction of pixels."
" If the fraction of pixels covered by the template is less than this value (and greater than"
" requiredTemplateFraction) this task is attempted but failure is anticipated and tolerated."
)

Definition at line 148 of file subtractImages.py.

◆ preserveTemplateMask

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.preserveTemplateMask
static
Initial value:
dtype=str,
default=("NO_DATA", "BAD",),
doc="Mask planes from the template to propagate to the image difference."
)

Definition at line 221 of file subtractImages.py.

◆ renameTemplateMask

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.renameTemplateMask
static
Initial value:
dtype=str,
default=("SAT", "INJECTED", "INJECTED_CORE",),
doc="Mask planes from the template to propagate to the image difference"
"with '_TEMPLATE' appended to the name."
)

Definition at line 226 of file subtractImages.py.

◆ requiredTemplateFraction

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.requiredTemplateFraction
static
Initial value:
dtype=float,
default=0.1,
doc="Raise NoWorkFound and do not attempt image subtraction if template covers less than this "
" fraction of pixels. Setting to 0 will always attempt image subtraction."
)

Definition at line 142 of file subtractImages.py.

◆ scaleVariance

lsst.ip.diffim.subtractImages.AlardLuptonSubtractBaseConfig.scaleVariance
static
Initial value:
target=ScaleVarianceTask,
doc="Subtask to rescale the variance of the template to the statistically expected level."
)

Definition at line 160 of file subtractImages.py.


The documentation for this class was generated from the following file: