|
| _getIsGoodKeys (self, schema) |
|
| _isGoodTest (self, source) |
|
| _doMatch (self, refCat, sourceCat, wcs, refFluxField, numUsableSources, minMatchedPairs, maxMatchDist, sourceFluxField, verbose) |
|
Match sources to reference objects using the Optimistic Pattern Matcher
B algorithm of Tabur 2007.
Definition at line 104 of file matchOptimisticBTask.py.
◆ __init__()
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask.__init__ |
( |
|
self, |
|
|
** |
kwargs |
|
) |
| |
◆ _doMatch()
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask._doMatch |
( |
|
self, |
|
|
|
refCat, |
|
|
|
sourceCat, |
|
|
|
wcs, |
|
|
|
refFluxField, |
|
|
|
numUsableSources, |
|
|
|
minMatchedPairs, |
|
|
|
maxMatchDist, |
|
|
|
sourceFluxField, |
|
|
|
verbose |
|
) |
| |
|
protected |
Implementation of matching sources to position reference stars.
Unlike matchObjectsToSources, this method does not check if the sources
are suitable.
Parameters
----------
refCat : `lsst.afw.table.SimpleCatalog`
Catalog of reference objects.
sourceCat : `lsst.afw.table.SourceCatalog`
Catalog of detected sources.
wcs : `lsst.afw.geom.SkyWcs`
Current best WCS of the image.
refFluxFioeld : `str`
Name of flux field in refCat to use.
numUsableSources : `int`
Total number of source usable for matching.
mintMatchPairs : `int`
Minimum number of objects to match between the refCat and sourceCat
to consider a valid match.
maxMatchDist : `lsst.geom.Angle`
Maximum separation to considering a reference and a source a match.
sourceFluxField : `str`
Name of source catalog flux field.
verbose : `bool`
Print diagnostic information std::cout
Returns
-------
matches : `list` of `lsst.afw.table.ReferenceMatch`
Definition at line 262 of file matchOptimisticBTask.py.
◆ _getIsGoodKeys()
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask._getIsGoodKeys |
( |
|
self, |
|
|
|
schema |
|
) |
| |
|
protected |
Retrieve the keys needed for the isGoodTest from the source catalog
schema.
Parameters
----------
schema : `lsst.afw.table.Schema`
Source schema to retrieve `lsst.afw.table.Key` s from.
Definition at line 228 of file matchOptimisticBTask.py.
◆ _isGoodTest()
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask._isGoodTest |
( |
|
self, |
|
|
|
source |
|
) |
| |
|
protected |
Test that an object is good for use in the WCS fitter.
This is a hard coded version of the isGood flag from the old SourceInfo
class that used to be part of this class.
Parameters
----------
source : `lsst.afw.table.SourceRecord`
Source to test.
Returns
-------
isGood : `bool`
Source passes CCD edge and saturated tests.
Definition at line 241 of file matchOptimisticBTask.py.
◆ filterStars()
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask.filterStars |
( |
|
self, |
|
|
|
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.
Definition at line 114 of file matchOptimisticBTask.py.
◆ matchObjectsToSources()
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask.matchObjectsToSources |
( |
|
self, |
|
|
|
refCat, |
|
|
|
sourceCat, |
|
|
|
wcs, |
|
|
|
sourceFluxField, |
|
|
|
refFluxField, |
|
|
|
match_tolerance = 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
match_tolerance : `lsst.meas.astrom.MatchTolerance`
Object containing information from previous
`lsst.meas.astrom.AstrometryTask` match/fit cycles for use in
matching. If `None` is config defaults.
Returns
-------
matchResult : `lsst.pipe.base.Struct`
Result struct with components
- ``matches`` : List of matches with distance below the maximum match
distance (`list` of `lsst.afw.table.ReferenceMatch`).
- ``useableSourceCat`` : Catalog of sources matched and suited for
WCS fitting (`lsst.afw.table.SourceCatalog`).
- ``match_tolerance`` : MatchTolerance object updated from this
match iteration (`lsst.meas.astrom.MatchTolerance`).
Definition at line 131 of file matchOptimisticBTask.py.
◆ _DefaultName
str lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask._DefaultName = "matchObjectsToSources" |
|
staticprotected |
◆ ConfigClass
◆ edgeKey
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask.edgeKey |
◆ interpolatedCenterKey
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask.interpolatedCenterKey |
◆ saturatedKey
lsst.meas.astrom.matchOptimisticBTask.MatchOptimisticBTask.saturatedKey |
The documentation for this class was generated from the following file: