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 127 of file dipoleFitTask.py.
lsst.ip.diffim.dipoleFitTask.DipoleFitTask.run |
( |
| self, |
|
|
| sources, |
|
|
| exposure, |
|
|
| posExp = None, |
|
|
| negExp = None, |
|
|
** | kwargs ) |
Run dipole measurement and classification.
Run SdssCentroid first, then switch the centroid slot, then DipoleFit
then the rest; DipoleFit will fall back on SdssCentroid for sources
not containing positive+negative peaks.
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 ``sources`` 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 153 of file dipoleFitTask.py.