LSSTApplications  18.0.0+66,19.0.0+42,19.0.0+45,19.0.0+49,19.0.0+5,19.0.0+54,19.0.0+9,19.0.0-1-g20d9b18+22,19.0.0-1-g49a97f9+3,19.0.0-1-g5549ca4+4,19.0.0-1-g8c57eb9+22,19.0.0-1-ga72da6b+3,19.0.0-1-gbfe0924+36,19.0.0-1-ge272bc4+22,19.0.0-1-gefe1d0d+24,19.0.0-10-g5d04f37+1,19.0.0-11-g10f13ba+3,19.0.0-13-gafd90fe+1,19.0.0-14-g5673ca6+1,19.0.0-14-g706b86db4,19.0.0-2-g0d9f9cd+46,19.0.0-2-g260436e+28,19.0.0-2-g9675b69+3,19.0.0-2-g9b11441+34,19.0.0-2-gde8e5e3+3,19.0.0-2-gf01c5b1+1,19.0.0-2-gff6972b+6,19.0.0-26-g830ab5e+1,19.0.0-3-g27e4659+13,19.0.0-3-g6513920+38,19.0.0-3-gce3f959+23,19.0.0-33-ge0e6817e,19.0.0-5-g9aa49c1+2,19.0.0-7-g686a884+4,19.0.0-7-ga57c4689+21,19.0.0-8-g079e426+11,w.2020.11
LSSTDataManagementBasePackage
Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.imageDifference.ImageDifferenceConfig Class Reference
Inheritance diagram for lsst.pipe.tasks.imageDifference.ImageDifferenceConfig:
lsst.pipe.tasks.imageDifference.Winter2013ImageDifferenceConfig

Public Member Functions

def setDefaults (self)
 
def validate (self)
 

Static Public Attributes

 doAddCalexpBackground
 
 doUseRegister
 
 doDebugRegister
 
 doSelectSources
 
 doSelectDcrCatalog
 
 doSelectVariableCatalog
 
 doSubtract
 
 doPreConvolve
 
 doScaleTemplateVariance
 
 useGaussianForPreConvolution
 
 doDetection
 
 doDecorrelation
 
 doMerge
 
 doMatchSources
 
 doMeasurement
 
 doDipoleFitting
 
 doForcedMeasurement
 
 doWriteSubtractedExp
 
 doWriteMatchedExp
 
 doWriteSources
 
 doAddMetrics
 
 coaddName
 
 convolveTemplate
 
 refObjLoader
 
 astrometer
 
 sourceSelector
 
 subtract
 
 decorrelate
 
 doSpatiallyVarying
 
 detection
 
 measurement
 
 forcedMeasurement
 
 getTemplate
 
 scaleVariance
 
 controlStepSize
 
 controlRandomSeed
 
 register
 
 kernelSourcesFromRef
 
 templateSipOrder
 
 growFootprint
 
 diaSourceMatchRadius
 

Detailed Description

Config for ImageDifferenceTask

Definition at line 51 of file imageDifference.py.

Member Function Documentation

◆ setDefaults()

def lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.setDefaults (   self)

Definition at line 187 of file imageDifference.py.

187  def setDefaults(self):
188  # defaults are OK for catalog and diacatalog
189 
190  self.subtract['al'].kernel.name = "AL"
191  self.subtract['al'].kernel.active.fitForBackground = True
192  self.subtract['al'].kernel.active.spatialKernelOrder = 1
193  self.subtract['al'].kernel.active.spatialBgOrder = 2
194  self.doPreConvolve = False
195  self.doMatchSources = False
196  self.doAddMetrics = False
197  self.doUseRegister = False
198 
199  # DiaSource Detection
200  self.detection.thresholdPolarity = "both"
201  self.detection.thresholdValue = 5.5
202  self.detection.reEstimateBackground = False
203  self.detection.thresholdType = "pixel_stdev"
204 
205  # Add filtered flux measurement, the correct measurement for pre-convolved images.
206  # Enable all measurements, regardless of doPreConvolve, as it makes data harvesting easier.
207  # To change that you must modify algorithms.names in the task's applyOverrides method,
208  # after the user has set doPreConvolve.
209  self.measurement.algorithms.names.add('base_PeakLikelihoodFlux')
210  self.measurement.plugins.names |= ['base_LocalPhotoCalib',
211  'base_LocalWcs']
212 
213  self.forcedMeasurement.plugins = ["base_TransformedCentroid", "base_PsfFlux"]
214  self.forcedMeasurement.copyColumns = {
215  "id": "objectId", "parent": "parentObjectId", "coord_ra": "coord_ra", "coord_dec": "coord_dec"}
216  self.forcedMeasurement.slots.centroid = "base_TransformedCentroid"
217  self.forcedMeasurement.slots.shape = None
218 
219  # For shuffling the control sample
220  random.seed(self.controlRandomSeed)
221 

◆ validate()

def lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.validate (   self)

Definition at line 222 of file imageDifference.py.

222  def validate(self):
223  pexConfig.Config.validate(self)
224  if self.doAddMetrics and not self.doSubtract:
225  raise ValueError("Subtraction must be enabled for kernel metrics calculation.")
226  if not self.doSubtract and not self.doDetection:
227  raise ValueError("Either doSubtract or doDetection must be enabled.")
228  if self.subtract.name == 'zogy' and self.doAddMetrics:
229  raise ValueError("Kernel metrics does not exist in zogy subtraction.")
230  if self.doMeasurement and not self.doDetection:
231  raise ValueError("Cannot run source measurement without source detection.")
232  if self.doMerge and not self.doDetection:
233  raise ValueError("Cannot run source merging without source detection.")
234  if self.doUseRegister and not self.doSelectSources:
235  raise ValueError("doUseRegister=True and doSelectSources=False. "
236  "Cannot run RegisterTask without selecting sources.")
237  if self.doPreConvolve and self.doDecorrelation and not self.convolveTemplate:
238  raise ValueError("doPreConvolve=True and doDecorrelation=True and "
239  "convolveTemplate=False is not supported.")
240  if hasattr(self.getTemplate, "coaddName"):
241  if self.getTemplate.coaddName != self.coaddName:
242  raise ValueError("Mis-matched coaddName and getTemplate.coaddName in the config.")
243 
244 

Member Data Documentation

◆ astrometer

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.astrometer
static

Definition at line 113 of file imageDifference.py.

◆ coaddName

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.coaddName
static

Definition at line 99 of file imageDifference.py.

◆ controlRandomSeed

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.controlRandomSeed
static

Definition at line 160 of file imageDifference.py.

◆ controlStepSize

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.controlStepSize
static

Definition at line 155 of file imageDifference.py.

◆ convolveTemplate

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.convolveTemplate
static

Definition at line 104 of file imageDifference.py.

◆ decorrelate

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.decorrelate
static

Definition at line 122 of file imageDifference.py.

◆ detection

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.detection
static

Definition at line 134 of file imageDifference.py.

◆ diaSourceMatchRadius

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.diaSourceMatchRadius
static

Definition at line 182 of file imageDifference.py.

◆ doAddCalexpBackground

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doAddCalexpBackground
static

Definition at line 54 of file imageDifference.py.

◆ doAddMetrics

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doAddMetrics
static

Definition at line 96 of file imageDifference.py.

◆ doDebugRegister

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doDebugRegister
static

Definition at line 60 of file imageDifference.py.

◆ doDecorrelation

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doDecorrelation
static

Definition at line 78 of file imageDifference.py.

◆ doDetection

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doDetection
static

Definition at line 77 of file imageDifference.py.

◆ doDipoleFitting

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doDipoleFitting
static

Definition at line 87 of file imageDifference.py.

◆ doForcedMeasurement

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doForcedMeasurement
static

Definition at line 88 of file imageDifference.py.

◆ doMatchSources

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doMatchSources
static

Definition at line 84 of file imageDifference.py.

◆ doMeasurement

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doMeasurement
static

Definition at line 86 of file imageDifference.py.

◆ doMerge

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doMerge
static

Definition at line 81 of file imageDifference.py.

◆ doPreConvolve

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doPreConvolve
static

Definition at line 70 of file imageDifference.py.

◆ doScaleTemplateVariance

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doScaleTemplateVariance
static

Definition at line 72 of file imageDifference.py.

◆ doSelectDcrCatalog

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doSelectDcrCatalog
static

Definition at line 64 of file imageDifference.py.

◆ doSelectSources

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doSelectSources
static

Definition at line 62 of file imageDifference.py.

◆ doSelectVariableCatalog

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doSelectVariableCatalog
static

Definition at line 66 of file imageDifference.py.

◆ doSpatiallyVarying

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doSpatiallyVarying
static

Definition at line 128 of file imageDifference.py.

◆ doSubtract

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doSubtract
static

Definition at line 69 of file imageDifference.py.

◆ doUseRegister

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doUseRegister
static

Definition at line 57 of file imageDifference.py.

◆ doWriteMatchedExp

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doWriteMatchedExp
static

Definition at line 93 of file imageDifference.py.

◆ doWriteSources

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doWriteSources
static

Definition at line 95 of file imageDifference.py.

◆ doWriteSubtractedExp

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.doWriteSubtractedExp
static

Definition at line 92 of file imageDifference.py.

◆ forcedMeasurement

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.forcedMeasurement
static

Definition at line 142 of file imageDifference.py.

◆ getTemplate

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.getTemplate
static

Definition at line 146 of file imageDifference.py.

◆ growFootprint

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.growFootprint
static

Definition at line 178 of file imageDifference.py.

◆ kernelSourcesFromRef

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.kernelSourcesFromRef
static

Definition at line 169 of file imageDifference.py.

◆ measurement

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.measurement
static

Definition at line 138 of file imageDifference.py.

◆ refObjLoader

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.refObjLoader
static

Definition at line 109 of file imageDifference.py.

◆ register

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.register
static

Definition at line 165 of file imageDifference.py.

◆ scaleVariance

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.scaleVariance
static

Definition at line 150 of file imageDifference.py.

◆ sourceSelector

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.sourceSelector
static

Definition at line 117 of file imageDifference.py.

◆ subtract

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.subtract
static

Definition at line 121 of file imageDifference.py.

◆ templateSipOrder

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.templateSipOrder
static

Definition at line 174 of file imageDifference.py.

◆ useGaussianForPreConvolution

lsst.pipe.tasks.imageDifference.ImageDifferenceConfig.useGaussianForPreConvolution
static

Definition at line 74 of file imageDifference.py.


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