MatchPessimisticBTask#
- class lsst.meas.astrom.MatchPessimisticBTask(**kwargs)#
Bases:
TaskMatch 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
- refCat
lsst.afw.table.SimpleCatalog catalog of reference objects that overlap the exposure; reads fields for:
coord
the specified flux field
- 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 estimated WCS
- sourceFluxField:
str field of sourceCat to use for flux
- refFluxField
str field of refCat to use for flux
- matchTolerance
lsst.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.- 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#
- result
lsst.pipe.base.Struct Result struct with components:
matches: source to reference matches found (listoflsst.afw.table.ReferenceMatch)usableSourceCat: a catalog of sources potentially usable for matching and WCS fitting (lsst.afw.table.SourceCatalog).matchTolerance: a MatchTolerance object containing the resulting state variables from the match (lsst.meas.astrom.MatchTolerancePessimistic).
- refCat