A task that fits a dipole to a difference image, with an optional separate detection image.
Because it subclasses SingleFrameMeasurementTask, and calls
SingleFrameMeasurementTask.run() from its run() method, it still
can be used identically to a standard SingleFrameMeasurementTask.
Definition at line 129 of file dipoleFitTask.py.
def lsst.ip.diffim.dipoleFitTask.DipoleFitTask.run |
( |
|
self, |
|
|
|
sources, |
|
|
|
exposure, |
|
|
|
posExp = None , |
|
|
|
negExp = None , |
|
|
** |
kwargs |
|
) |
| |
Run dipole measurement and classification
Parameters
----------
sources : `lsst.afw.table.SourceCatalog`
``diaSources`` that will be measured using dipole measurement
exposure : `lsst.afw.image.Exposure`
The difference exposure on which the ``diaSources`` of the ``sources`` parameter
were detected. If neither ``posExp`` nor ``negExp`` are set, then the dipole is also
fitted directly to this difference image.
posExp : `lsst.afw.image.Exposure`, optional
"Positive" exposure, typically a science exposure, or None if unavailable
When `posExp` is `None`, will compute `posImage = exposure + negExp`.
negExp : `lsst.afw.image.Exposure`, optional
"Negative" exposure, typically a template exposure, or None if unavailable
When `negExp` is `None`, will compute `negImage = posExp - exposure`.
**kwargs
Additional keyword arguments for `lsst.meas.base.sfm.SingleFrameMeasurementTask`.
Definition at line 151 of file dipoleFitTask.py.