MatchPessimisticBTask#

class lsst.meas.astrom.MatchPessimisticBTask(**kwargs)#

Bases: Task

Match sources to reference objects.

Methods Summary

matchObjectsToSources(refCat, sourceCat, ...)

Match sources to position reference stars

Methods Documentation

matchObjectsToSources(refCat, sourceCat, wcs, sourceFluxField, refFluxField, matchTolerance=None, bbox=None)#

Match sources to position reference stars

refCatlsst.afw.table.SimpleCatalog

catalog of reference objects that overlap the exposure; reads fields for:

  • coord

  • the specified flux field

sourceCatlsst.afw.table.SourceCatalog

Catalog of sources found on an exposure. This should already be down-selected to “good”/”usable” sources in the calling Task.

wcslsst.afw.geom.SkyWcs

estimated WCS

sourceFluxField: str

field of sourceCat to use for flux

refFluxFieldstr

field of refCat to use for flux

matchTolerancelsst.meas.astrom.MatchTolerancePessimistic

is a MatchTolerance class object or None. This this class is used to communicate state between AstrometryTask and MatcherTask. AstrometryTask will also set the MatchTolerance class variable maxMatchDist based on the scatter AstrometryTask has found after fitting for the wcs.

bboxlsst.geom.Box2I, optional

Bounding box of the exposure for evaluating the local pixelScale (defaults to the Sky Origin of the wcs provided if bbox is None).

Returns#

resultlsst.pipe.base.Struct

Result struct with components: