DiaForcedSourceTask#

class lsst.ap.association.DiaForcedSourceTask(**kwargs)#

Bases: Task

Task for measuring and storing forced sources at DiaObject locations in both difference and direct images.

Methods Summary

run(dia_objects, updatedDiaObjectIds, ...)

Measure forced sources on the direct and difference images.

Methods Documentation

run(dia_objects, updatedDiaObjectIds, exposure, diffim, idGenerator)#

Measure forced sources on the direct and difference images.

Parameters#

dia_objectspandas.DataFrame

Catalog of previously observed and newly created DiaObjects contained within the difference and direct images. DiaObjects must be indexed on the diaObjectId column.

updatedDiaObjectIdsnumpy.ndarray or None

Not used. DiaObjects outside the difference image are dropped, and they would have invalid values if they were included.

exposurelsst.afw.image.Exposure

Direct image exposure.

diffimlsst.afw.image.Exposure

Difference image.

idGeneratorlsst.meas.base.IdGenerator

Object that generates source IDs and random number generator seeds.

Returns#

output_forced_sourcespandas.DataFrame

Catalog of calibrated forced photometered fluxes on both the difference and direct images at DiaObject locations. Sources with any of config.badFlags set are removed.