MatchOptimisticBTask#

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

Bases: Task

Match sources to reference objects using the Optimistic Pattern Matcher B algorithm of Tabur 2007.

Methods Summary

filterStars(refCat)

Extra filtering pass; subclass if desired.

matchObjectsToSources(refCat, sourceCat, ...)

Match sources to position reference stars.

Methods Documentation

filterStars(refCat)#

Extra filtering pass; subclass if desired.

Parameters#

refCatlsst.afw.table.SimpleCatalog

Catalog of reference objects.

Returns#

trimmedRefCatlsst.afw.table.SimpleCatalog

Reference catalog with some filtering applied. Currently no filtering is applied.

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

Match sources to position reference stars.

Parameters#

refCatlsst.afw.table.SimpleCatalog

Reference catalog to match.

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

Current WCS of the exposure containing the sources.

sourceFluxFieldstr

Field of the sourceCat to use for flux

refFluxFieldstr

Field of the refCat to use for flux

matchTolerancelsst.meas.astrom.MatchTolerance

Object containing information from previous lsst.meas.astrom.AstrometryTask match/fit cycles for use in matching. If None is config defaults.

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#

matchResultlsst.pipe.base.Struct

Result struct with components