LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.ip.diffim.dipoleFitTask.DipoleFitTask Class Reference
Inheritance diagram for lsst.ip.diffim.dipoleFitTask.DipoleFitTask:

Public Member Functions

def __init__ (self, schema, algMetadata=None, **kwargs)
 
def run (self, sources, exposure, posExp=None, negExp=None, **kwargs)
 

Public Attributes

 dipoleFitter
 

Static Public Attributes

 ConfigClass = DipoleFitTaskConfig
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def lsst.ip.diffim.dipoleFitTask.DipoleFitTask.__init__ (   self,
  schema,
  algMetadata = None,
**  kwargs 
)

Definition at line 140 of file dipoleFitTask.py.

140  def __init__(self, schema, algMetadata=None, **kwargs):
141 
142  measBase.SingleFrameMeasurementTask.__init__(self, schema, algMetadata, **kwargs)
143 
144  dpFitPluginConfig = self.config.plugins['ip_diffim_DipoleFit']
145 
146  self.dipoleFitter = DipoleFitPlugin(dpFitPluginConfig, name=self._DefaultName,
147  schema=schema, metadata=algMetadata)
148 

Member Function Documentation

◆ run()

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 150 of file dipoleFitTask.py.

150  def run(self, sources, exposure, posExp=None, negExp=None, **kwargs):
151  """Run dipole measurement and classification
152 
153  Parameters
154  ----------
155  sources : `lsst.afw.table.SourceCatalog`
156  ``diaSources`` that will be measured using dipole measurement
157  exposure : `lsst.afw.image.Exposure`
158  The difference exposure on which the ``diaSources`` of the ``sources`` parameter
159  were detected. If neither ``posExp`` nor ``negExp`` are set, then the dipole is also
160  fitted directly to this difference image.
161  posExp : `lsst.afw.image.Exposure`, optional
162  "Positive" exposure, typically a science exposure, or None if unavailable
163  When `posExp` is `None`, will compute `posImage = exposure + negExp`.
164  negExp : `lsst.afw.image.Exposure`, optional
165  "Negative" exposure, typically a template exposure, or None if unavailable
166  When `negExp` is `None`, will compute `negImage = posExp - exposure`.
167  **kwargs
168  Additional keyword arguments for `lsst.meas.base.sfm.SingleFrameMeasurementTask`.
169  """
170 
171  measBase.SingleFrameMeasurementTask.run(self, sources, exposure, **kwargs)
172 
173  if not sources:
174  return
175 
176  for source in sources:
177  self.dipoleFitter.measure(source, exposure, posExp, negExp)
178 
179 
def run(self, coaddExposures, bbox, wcs)
Definition: getTemplate.py:603
def measure(mi, x, y, size, statistic, stats)
Definition: fringe.py:517

Member Data Documentation

◆ ConfigClass

lsst.ip.diffim.dipoleFitTask.DipoleFitTask.ConfigClass = DipoleFitTaskConfig
static

Definition at line 137 of file dipoleFitTask.py.

◆ dipoleFitter

lsst.ip.diffim.dipoleFitTask.DipoleFitTask.dipoleFitter

Definition at line 146 of file dipoleFitTask.py.


The documentation for this class was generated from the following file: