|
def | __init__ (self, kwargs) |
|
def | fitAstrometry (self, templateSources, templateExposure, selectSources) |
|
def | runDataRef (self, sensorRef, templateIdList=None) |
|
def | run (self, exposure=None, selectSources=None, templateExposure=None, templateSources=None, idFactory=None, calexpBackgroundExposure=None, subtractedExposure=None) |
|
def | runDebug (self, exposure, subtractRes, selectSources, kernelSources, diaSources) |
|
def | getSchemaCatalogs (self) |
|
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 1029 of file imageDifference.py.
def lsst.pipe.tasks.imageDifference.ImageDifferenceTask.run |
( |
|
self, |
|
|
|
exposure = None , |
|
|
|
selectSources = None , |
|
|
|
templateExposure = None , |
|
|
|
templateSources = None , |
|
|
|
idFactory = None , |
|
|
|
calexpBackgroundExposure = None , |
|
|
|
subtractedExposure = None |
|
) |
| |
|
inherited |
PSF matches, subtract two images and perform detection on the difference image.
Parameters
----------
exposure : `lsst.afw.image.ExposureF`, optional
The science exposure, the minuend in the image subtraction.
Can be None only if ``config.doSubtract==False``.
selectSources : `lsst.afw.table.SourceCatalog`, optional
Identified sources on the science exposure. This catalog is used to
select sources in order to perform the AL PSF matching on stamp images
around them. The selection steps depend on config options and whether
``templateSources`` and ``matchingSources`` specified.
templateExposure : `lsst.afw.image.ExposureF`, optional
The template to be subtracted from ``exposure`` in the image subtraction.
The template exposure should cover the same sky area as the science exposure.
It is either a stich of patches of a coadd skymap image or a calexp
of the same pointing as the science exposure. Can be None only
if ``config.doSubtract==False`` and ``subtractedExposure`` is not None.
templateSources : `lsst.afw.table.SourceCatalog`, optional
Identified sources on the template exposure.
idFactory : `lsst.afw.table.IdFactory`
Generator object to assign ids to detected sources in the difference image.
calexpBackgroundExposure : `lsst.afw.image.ExposureF`, optional
Background exposure to be added back to the science exposure
if ``config.doAddCalexpBackground==True``
subtractedExposure : `lsst.afw.image.ExposureF`, optional
If ``config.doSubtract==False`` and ``config.doDetection==True``,
performs the post subtraction source detection only on this exposure.
Otherwise should be None.
Returns
-------
results : `lsst.pipe.base.Struct`
``subtractedExposure`` : `lsst.afw.image.ExposureF`
Difference image.
``matchedExposure`` : `lsst.afw.image.ExposureF`
The matched PSF exposure.
``subtractRes`` : `lsst.pipe.base.Struct`
The returned result structure of the ImagePsfMatchTask subtask.
``diaSources`` : `lsst.afw.table.SourceCatalog`
The catalog of detected sources.
``selectSources`` : `lsst.afw.table.SourceCatalog`
The input source catalog with optionally added Qa information.
Notes
-----
The following major steps are included:
- warp template coadd to match WCS of image
- PSF match image to warped template
- subtract image from PSF-matched, warped template
- detect sources
- measure sources
For details about the image subtraction configuration modes
see `lsst.ip.diffim`.
Definition at line 429 of file imageDifference.py.