DirectMatchTask#
- class lsst.meas.astrom.DirectMatchTask(refObjLoader=None, **kwargs)#
Bases:
TaskSimple, brute force matching of a source catalog to a reference catalog.
Parameters#
- butler
None Compatibility parameter. Should not be used.
- refObjLoader
lsst.meas.algorithms.ReferenceObjectLoaderorNone A reference object loader object; gen3 pipeline tasks will pass
Noneand callsetRefObjLoaderinrunQuantum.- **kwargs
Other keyword arguments required for instantiating a Task (such as
config).
Methods Summary
calculateCircle(catalog)Calculate a circle enclosing the catalog.
run(catalog[, filterName, epoch])Load reference objects and match to them.
setRefObjLoader(refObjLoader)Set the reference object loader for the task.
Methods Documentation
- calculateCircle(catalog)#
Calculate a circle enclosing the catalog.
Parameters#
- catalog
lsst.afw.table.SourceCatalog Catalog to encircle.
Returns#
- result
lsst.pipe.base.Struct Result struct with components:
centerICRS center coordinate (
lsst.afw.geom.SpherePoint).radiusRadius of the circle (
lsst.geom.Angle).
- catalog
- run(catalog, filterName=None, epoch=None)#
Load reference objects and match to them.
Parameters#
- catalog
lsst.afw.table.SourceCatalog Catalog to match.
- filterName
str Name of filter loading fluxes.
- epoch
astropy.time.TimeorNone Epoch to which to correct proper motion and parallax, or
Noneto not apply such corrections.
Returns#
- result
lsst.pipe.base.Struct Result struct with components:
matchesMatched sources with associated reference (
lsst.afw.table.SourceMatchVector).matchMetaMatch metadata (
lsst.meas.astrom.MatchMetadata).
- catalog
- setRefObjLoader(refObjLoader)#
Set the reference object loader for the task.
Parameters#
- refObjLoader
lsst.meas.algorithms.ReferenceObjectLoader An instance of a reference object loader.
- refObjLoader
- butler