MatchOptimisticBTask#
- class lsst.meas.astrom.MatchOptimisticBTask(**kwargs)#
Bases:
TaskMatch 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#
- refCat
lsst.afw.table.SimpleCatalog Catalog of reference objects.
Returns#
- trimmedRefCat
lsst.afw.table.SimpleCatalog Reference catalog with some filtering applied. Currently no filtering is applied.
- refCat
- matchObjectsToSources(refCat, sourceCat, wcs, sourceFluxField, refFluxField, matchTolerance=None, bbox=None)#
Match sources to position reference stars.
Parameters#
- refCat
lsst.afw.table.SimpleCatalog Reference catalog to match.
- sourceCat
lsst.afw.table.SourceCatalog Catalog of sources found on an exposure. This should already be down-selected to “good”/”usable” sources in the calling Task.
- wcs
lsst.afw.geom.SkyWcs Current WCS of the exposure containing the sources.
- sourceFluxField
str Field of the sourceCat to use for flux
- refFluxField
str Field of the refCat to use for flux
- matchTolerance
lsst.meas.astrom.MatchTolerance Object containing information from previous
lsst.meas.astrom.AstrometryTaskmatch/fit cycles for use in matching. IfNoneis config defaults.- bbox
lsst.geom.Box2I, optional Bounding box of the exposure for evaluating the local pixelScale (defaults to the Sky Origin of the
wcsprovided ifbboxisNone).
Returns#
- matchResult
lsst.pipe.base.Struct Result struct with components
matches: List of matches with distance below the maximum match distance (listoflsst.afw.table.ReferenceMatch).useableSourceCat: Catalog of sources matched and suited for WCS fitting (lsst.afw.table.SourceCatalog).matchTolerance: MatchTolerance object updated from this match iteration (lsst.meas.astrom.MatchTolerance).
- refCat