DipoleFitTask#
- class lsst.ip.diffim.DipoleFitTask(schema, algMetadata=None, **kwargs)#
Bases:
SingleFrameMeasurementTaskA 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.
Methods Summary
run(sources, exposure[, posExp, negExp])Run dipole measurement and classification.
Methods Documentation
- run(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 diaSourcesthat will be measured using dipole measurement.- exposure
lsst.afw.image.Exposure The difference exposure on which the
sourceswere detected. If neitherposExpnornegExpare 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
posExpisNone, will computeposImage = exposure + negExp.- negExp
lsst.afw.image.Exposure, optional “Negative” exposure, typically a template exposure, or None if unavailable When
negExpisNone, will computenegImage = posExp - exposure.- **kwargs
Additional keyword arguments for
lsst.meas.base.sfm.SingleFrameMeasurementTask.
- sources