LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Static Public Attributes | List of all members
lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig Class Reference
Inheritance diagram for lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig:
lsst.meas.algorithms.detection.SourceDetectionConfig

Public Member Functions

def setDefaults (self)
 

Static Public Attributes

 prelimThresholdFactor
 
 skyObjects = ConfigurableField(target=SkyObjectsTask, doc="Generate sky objects")
 
 doBackgroundTweak
 
 minNumSources
 
 minPixels
 
 isotropicGrow
 
 combinedGrow
 
 nSigmaToGrow
 
 returnOriginalFootprints
 
 thresholdValue
 
 includeThresholdMultiplier
 
 thresholdType
 
 thresholdPolarity
 
 adjustBackground
 
 reEstimateBackground
 
 background
 
 tempLocalBackground
 
 doTempLocalBackground
 
 tempWideBackground
 
 doTempWideBackground
 
 nPeaksMaxSimple
 
 nSigmaForKernel
 
 statsMask
 

Detailed Description

Configuration for DynamicDetectionTask

Definition at line 20 of file dynamicDetection.py.

Member Function Documentation

◆ setDefaults()

def lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig.setDefaults (   self)

Reimplemented from lsst.meas.algorithms.detection.SourceDetectionConfig.

Definition at line 32 of file dynamicDetection.py.

32  def setDefaults(self):
33  SourceDetectionConfig.setDefaults(self)
34  self.skyObjects.nSources = 1000 # For good statistics
35 
36 

Member Data Documentation

◆ adjustBackground

lsst.meas.algorithms.detection.SourceDetectionConfig.adjustBackground
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc="Fiddle factor to add to the background; debugging only",
default=0.0,
)

Definition at line 93 of file detection.py.

◆ background

lsst.meas.algorithms.detection.SourceDetectionConfig.background
staticinherited
Initial value:
= pexConfig.ConfigurableField(
doc="Background re-estimation; ignored if reEstimateBackground false",
target=SubtractBackgroundTask,
)

Definition at line 103 of file detection.py.

◆ combinedGrow

lsst.meas.algorithms.detection.SourceDetectionConfig.combinedGrow
staticinherited
Initial value:
= pexConfig.Field(
doc="Grow all footprints at the same time? This allows disconnected footprints to merge.",
dtype=bool, default=True,
)

Definition at line 54 of file detection.py.

◆ doBackgroundTweak

lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig.doBackgroundTweak
static
Initial value:
= Field(dtype=bool, default=True,
doc="Tweak background level so median PSF flux of sky objects is zero?")

Definition at line 26 of file dynamicDetection.py.

◆ doTempLocalBackground

lsst.meas.algorithms.detection.SourceDetectionConfig.doTempLocalBackground
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Enable temporary local background subtraction? (see tempLocalBackground)",
default=True,
)

Definition at line 113 of file detection.py.

◆ doTempWideBackground

lsst.meas.algorithms.detection.SourceDetectionConfig.doTempWideBackground
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Do temporary wide (large-scale) background subtraction before footprint detection?",
default=False,
)

Definition at line 124 of file detection.py.

◆ includeThresholdMultiplier

lsst.meas.algorithms.detection.SourceDetectionConfig.includeThresholdMultiplier
staticinherited
Initial value:
= pexConfig.RangeField(
doc="Include threshold relative to thresholdValue",
dtype=float, default=1.0, min=0.0,
)

Definition at line 70 of file detection.py.

◆ isotropicGrow

lsst.meas.algorithms.detection.SourceDetectionConfig.isotropicGrow
staticinherited
Initial value:
= pexConfig.Field(
doc="Pixels should be grown as isotropically as possible (slower)",
dtype=bool, optional=False, default=False,
)

Definition at line 50 of file detection.py.

◆ minNumSources

lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig.minNumSources
static
Initial value:
= Field(dtype=int, default=10,
doc="Minimum number of sky sources in statistical sample; "
"if below this number, we refuse to modify the threshold.")

Definition at line 28 of file dynamicDetection.py.

◆ minPixels

lsst.meas.algorithms.detection.SourceDetectionConfig.minPixels
staticinherited
Initial value:
= pexConfig.RangeField(
doc="detected sources with fewer than the specified number of pixels will be ignored",
dtype=int, optional=False, default=1, min=0,
)

Definition at line 46 of file detection.py.

◆ nPeaksMaxSimple

lsst.meas.algorithms.detection.SourceDetectionConfig.nPeaksMaxSimple
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc=("The maximum number of peaks in a Footprint before trying to "
"replace its peaks using the temporary local background"),
default=1,
)

Definition at line 129 of file detection.py.

◆ nSigmaForKernel

lsst.meas.algorithms.detection.SourceDetectionConfig.nSigmaForKernel
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc=("Multiple of PSF RMS size to use for convolution kernel bounding box size; "
"note that this is not a half-size. The size will be rounded up to the nearest odd integer"),
default=7.0,
)

Definition at line 135 of file detection.py.

◆ nSigmaToGrow

lsst.meas.algorithms.detection.SourceDetectionConfig.nSigmaToGrow
staticinherited
Initial value:
= pexConfig.Field(
doc="Grow detections by nSigmaToGrow * [PSF RMS width]; if 0 then do not grow",
dtype=float, default=2.4, # 2.4 pixels/sigma is roughly one pixel/FWHM
)

Definition at line 58 of file detection.py.

◆ prelimThresholdFactor

lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig.prelimThresholdFactor
static
Initial value:
= Field(dtype=float, default=0.5,
doc="Fraction of the threshold to use for first pass (to find sky objects)")

Definition at line 23 of file dynamicDetection.py.

◆ reEstimateBackground

lsst.meas.algorithms.detection.SourceDetectionConfig.reEstimateBackground
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Estimate the background again after final source detection?",
default=True, optional=False,
)

Definition at line 98 of file detection.py.

◆ returnOriginalFootprints

lsst.meas.algorithms.detection.SourceDetectionConfig.returnOriginalFootprints
staticinherited
Initial value:
= pexConfig.Field(
doc="Grow detections to set the image mask bits, but return the original (not-grown) footprints",
dtype=bool, optional=False, default=False,
)

Definition at line 62 of file detection.py.

◆ skyObjects

lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig.skyObjects = ConfigurableField(target=SkyObjectsTask, doc="Generate sky objects")
static

Definition at line 25 of file dynamicDetection.py.

◆ statsMask

lsst.meas.algorithms.detection.SourceDetectionConfig.statsMask
staticinherited
Initial value:
= pexConfig.ListField(
dtype=str,
doc="Mask planes to ignore when calculating statistics of image (for thresholdType=stdev)",
default=['BAD', 'SAT', 'EDGE', 'NO_DATA'],
)

Definition at line 141 of file detection.py.

◆ tempLocalBackground

lsst.meas.algorithms.detection.SourceDetectionConfig.tempLocalBackground
staticinherited
Initial value:
= pexConfig.ConfigurableField(
doc=("A local (small-scale), temporary background estimation step run between "
"detecting above-threshold regions and detecting the peaks within "
"them; used to avoid detecting spuerious peaks in the wings."),
target=SubtractBackgroundTask,
)

Definition at line 107 of file detection.py.

◆ tempWideBackground

lsst.meas.algorithms.detection.SourceDetectionConfig.tempWideBackground
staticinherited
Initial value:
= pexConfig.ConfigurableField(
doc=("A wide (large-scale) background estimation and removal before footprint and peak detection. "
"It is added back into the image after detection. The purpose is to suppress very large "
"footprints (e.g., from large artifacts) that the deblender may choke on."),
target=SubtractBackgroundTask,
)

Definition at line 118 of file detection.py.

◆ thresholdPolarity

lsst.meas.algorithms.detection.SourceDetectionConfig.thresholdPolarity
staticinherited
Initial value:
= pexConfig.ChoiceField(
doc="specifies whether to detect positive, or negative sources, or both",
dtype=str, optional=False, default="positive",
allowed={
"positive": "detect only positive sources",
"negative": "detect only negative sources",
"both": "detect both positive and negative sources",
},
)

Definition at line 84 of file detection.py.

◆ thresholdType

lsst.meas.algorithms.detection.SourceDetectionConfig.thresholdType
staticinherited
Initial value:
= pexConfig.ChoiceField(
doc="specifies the desired flavor of Threshold",
dtype=str, optional=False, default="stdev",
allowed={
"variance": "threshold applied to image variance",
"stdev": "threshold applied to image std deviation",
"value": "threshold applied to image value",
"pixel_stdev": "threshold applied to per-pixel std deviation",
},
)

Definition at line 74 of file detection.py.

◆ thresholdValue

lsst.meas.algorithms.detection.SourceDetectionConfig.thresholdValue
staticinherited
Initial value:
= pexConfig.RangeField(
doc="Threshold for footprints; exact meaning and units depend on thresholdType.",
dtype=float, optional=False, default=5.0, min=0.0,
)

Definition at line 66 of file detection.py.


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