DirectMatchTask#

class lsst.meas.astrom.DirectMatchTask(refObjLoader=None, **kwargs)#

Bases: Task

Simple, brute force matching of a source catalog to a reference catalog.

Parameters#

butlerNone

Compatibility parameter. Should not be used.

refObjLoaderlsst.meas.algorithms.ReferenceObjectLoader or None

A reference object loader object; gen3 pipeline tasks will pass None and call setRefObjLoader in runQuantum.

**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#

cataloglsst.afw.table.SourceCatalog

Catalog to encircle.

Returns#

resultlsst.pipe.base.Struct

Result struct with components:

center

ICRS center coordinate (lsst.afw.geom.SpherePoint).

radius

Radius of the circle (lsst.geom.Angle).

run(catalog, filterName=None, epoch=None)#

Load reference objects and match to them.

Parameters#

cataloglsst.afw.table.SourceCatalog

Catalog to match.

filterNamestr

Name of filter loading fluxes.

epochastropy.time.Time or None

Epoch to which to correct proper motion and parallax, or None to not apply such corrections.

Returns#

resultlsst.pipe.base.Struct

Result struct with components:

matches

Matched sources with associated reference (lsst.afw.table.SourceMatchVector).

matchMeta

Match metadata (lsst.meas.astrom.MatchMetadata).

setRefObjLoader(refObjLoader)#

Set the reference object loader for the task.

Parameters#

refObjLoaderlsst.meas.algorithms.ReferenceObjectLoader

An instance of a reference object loader.