MakePsfCandidatesTask#

class lsst.meas.algorithms.MakePsfCandidatesTask(config: Config | None = None, *, name: str | None = None, parentTask: Task | None = None, log: logging.Logger | lsst.utils.logging.LsstLogAdapter | None = None)#

Bases: Task

Create PSF candidates given an input catalog.

Methods Summary

makePsfCandidates(starCat, exposure)

Make a list of PSF candidates from a star catalog.

run(starCat, exposure[, psfCandidateField])

Make a list of PSF candidates from a star catalog.

Methods Documentation

makePsfCandidates(starCat, exposure)#

Make a list of PSF candidates from a star catalog.

Parameters#

starCatlsst.afw.table.SourceCatalog

Catalog of stars, as returned by lsst.meas.algorithms.starSelector.run().

exposurelsst.afw.image.Exposure

The exposure containing the sources.

Returns#

structlsst.pipe.base.Struct

Results struct containing:

  • psfCandidatesList of PSF candidates

    (list of lsst.meas.algorithms.PsfCandidate).

  • goodStarCatSubset of starCat that was successfully made

    into PSF candidates (lsst.afw.table.SourceCatalog).

run(starCat, exposure, psfCandidateField=None)#

Make a list of PSF candidates from a star catalog.

Parameters#

starCatlsst.afw.table.SourceCatalog

Catalog of stars, as returned by lsst.meas.algorithms.starSelector.run().

exposurelsst.afw.image.Exposure

The exposure containing the sources.

psfCandidateFieldstr, optional

Name of flag field to set True for PSF candidates, or None to not set a field; the field is left unchanged for non-candidates.

Returns#

structlsst.pipe.base.Struct

Results struct containing:

  • psfCandidatesList of PSF candidates

    (list of lsst.meas.algorithms.PsfCandidate).

  • goodStarCatSubset of starCat that was successfully made

    into PSF candidates (lsst.afw.table.SourceCatalog).