Task to perform Zogy PSF matching and image subtraction.
This class inherits from ImagePsfMatchTask to contain the _warper
subtask and related methods.
Definition at line 998 of file zogy.py.
def lsst.ip.diffim.zogy.ZogyImagePsfMatchTask.subtractExposures |
( |
|
self, |
|
|
|
templateExposure, |
|
|
|
scienceExposure, |
|
|
|
doWarping = True , |
|
|
|
spatiallyVarying = True , |
|
|
|
inImageSpace = False , |
|
|
|
doPreConvolve = False |
|
) |
| |
Register, PSF-match, and subtract two Exposures using the ZOGY algorithm.
Do the following, in order:
- Warp templateExposure to match scienceExposure, if their WCSs do not already match
- Compute subtracted exposure ZOGY image subtraction algorithm on the two exposures
Parameters
----------
templateExposure : `lsst.afw.image.Exposure`
exposure to PSF-match to scienceExposure. The exposure's mean value is subtracted
in-place.
scienceExposure : `lsst.afw.image.Exposure`
reference Exposure. The exposure's mean value is subtracted in-place.
doWarping : `bool`
what to do if templateExposure's and scienceExposure's WCSs do not match:
- if True then warp templateExposure to match scienceExposure
- if False then raise an Exception
spatiallyVarying : bool
If True, perform the operation over a grid of patches across the two exposures
inImageSpace : `bool`
If True, perform the Zogy convolutions in image space rather than in frequency space.
doPreConvolve : `bool`
***Currently not implemented.*** If True assume we are to compute the match filter-convolved
exposure which can be thresholded for detection. In the case of Zogy this would mean
we compute the Scorr image.
Returns
-------
A `lsst.pipe.base.Struct` containing these fields:
- subtractedExposure: subtracted Exposure
- warpedExposure: templateExposure after warping to match scienceExposure (if doWarping true)
Definition at line 1027 of file zogy.py.