Image difference Task used in the Winter 2013 data challege.
Enables testing the effects of registration shifts and scatter.
For use with winter 2013 simulated images: Use –templateId visit=88868666 for sparse data –templateId visit=22222200 for dense data (g) –templateId visit=11111100 for dense data (i)
Definition at line 803 of file imageDifference.py.
def lsst.pipe.tasks.imageDifference.ImageDifferenceTask.run |
( |
|
self, |
|
|
|
sensorRef, |
|
|
|
templateIdList = None |
|
) |
| |
|
inherited |
Subtract an image from a template coadd and measure the result
Steps include:
- warp template coadd to match WCS of image
- PSF match image to warped template
- subtract image from PSF-matched, warped template
- persist difference image
- detect sources
- measure sources
@param sensorRef: sensor-level butler data reference, used for the following data products:
Input only:
- calexp
- psf
- ccdExposureId
- ccdExposureId_bits
- self.config.coaddName + "Coadd_skyMap"
- self.config.coaddName + "Coadd"
Input or output, depending on config:
- self.config.coaddName + "Diff_subtractedExp"
Output, depending on config:
- self.config.coaddName + "Diff_matchedExp"
- self.config.coaddName + "Diff_src"
@return pipe_base Struct containing these fields:
- subtractedExposure: exposure after subtracting template;
the unpersisted version if subtraction not run but detection run
None if neither subtraction nor detection run (i.e. nothing useful done)
- subtractRes: results of subtraction task; None if subtraction not run
- sources: detected and possibly measured sources; None if detection not run
Definition at line 256 of file imageDifference.py.