LSSTApplications
11.0-22-g33de520,12.1+21,13.0
LSSTDataManagementBasePackage
|
Match sources to reference objects. More...
Public Member Functions | |
def | __init__ |
def | filterStars |
def | matchObjectsToSources |
Match sources to position reference stars. More... | |
Public Attributes | |
edgeKey | |
interpolatedCenterKey | |
saturatedKey | |
Static Public Attributes | |
ConfigClass = MatchOptimisticBConfig | |
Private Member Functions | |
def | _getIsGoodKeys |
def | _isGoodTest |
def | _doMatch |
Implementation of matching sources to position reference stars. More... | |
Static Private Attributes | |
string | _DefaultName = "matchObjectsToSources" |
Match sources to reference objects.
Match sources to reference objects. This is often done as a preliminary step to fitting an astrometric or photometric solution. For details about the matching algorithm see matchOptimisticB.h
Match sources to position reference stars.
[in] | refCat | catalog of reference objects that overlap the exposure; reads fields for:
|
[in] | sourceCat | catalog of sources found on an exposure; reads fields for:
|
[in] | wcs | estimated WCS |
[in] | refFluxField | field of refCat to use for flux |
[in] | maxMatchDist | maximum on-sky distance between reference objects and sources (an lsst.afw.geom.Angle); if specified then the smaller of config.maxMatchDistArcSec or maxMatchDist is used; if None then config.maxMatchDistArcSec is used |
To modify the tests for usable sources and good sources, subclass SourceInfo and set MatchOptimisticBTask.SourceInfoClass to your subclass.
MatchOptimisticBTask is a subtask of AstrometryTask, which is called by PhotoCalTask. See meas_photocal_photocal_Example.
The command line task interface supports a flag -d
to import debug.py from your PYTHONPATH
; see Using lsstDebug to control debugging output for more about debug.py files.
The available variables in MatchOptimisticBTask are:
verbose
(bool) To investigate the Debug variables, put something like
into your debug.py file and run this task with the –debug
flag.
Definition at line 93 of file matchOptimisticB.py.
def lsst.meas.astrom.matchOptimisticB.MatchOptimisticBTask.__init__ | ( | self, | |
kwargs | |||
) |
|
private |
Implementation of matching sources to position reference stars.
Unlike matchObjectsToSources, this method does not check if the sources are suitable.
[in] | refCat | catalog of position reference stars that overlap an exposure |
[in] | sourceCat | catalog of sources found on the exposure |
[in] | wcs | estimated WCS of exposure |
[in] | refFluxField | field of refCat to use for flux |
[in] | numUsableSources | number of usable sources (sources with known centroid that are not near the edge, but may be saturated) |
[in] | minMatchedPairs | minimum number of matches |
[in] | maxMatchDist | maximum on-sky distance between reference objects and sources (an lsst.afw.geom.Angle); if specified then the smaller of config.maxMatchDistArcSec or maxMatchDist is used; if None then config.maxMatchDistArcSec is used |
[in] | sourceInfo | SourceInfo for the sourceCat |
[in] | verbose | true to print diagnostic information to std::cout |
Definition at line 275 of file matchOptimisticB.py.
|
private |
Definition at line 258 of file matchOptimisticB.py.
|
private |
This is a hard coded version of the isGood flag from the old SourceInfo class that used to be part of this class. This is done current as the API for sourceSelector does not currently support matchLists.
Definition at line 263 of file matchOptimisticB.py.
def lsst.meas.astrom.matchOptimisticB.MatchOptimisticBTask.filterStars | ( | self, | |
refCat | |||
) |
Extra filtering pass; subclass if desired
Definition at line 165 of file matchOptimisticB.py.
def lsst.meas.astrom.matchOptimisticB.MatchOptimisticBTask.matchObjectsToSources | ( | self, | |
refCat, | |||
sourceCat, | |||
wcs, | |||
refFluxField, | |||
maxMatchDist = None |
|||
) |
Match sources to position reference stars.
[in] | refCat | catalog of reference objects that overlap the exposure; reads fields for:
|
[in] | sourceCat | catalog of sources found on an exposure; reads fields for:
|
[in] | wcs | estimated WCS |
[in] | refFluxField | field of refCat to use for flux |
[in] | maxMatchDist | maximum on-sky distance between reference objects and sources (an lsst.afw.geom.Angle); if specified then the smaller of config.maxMatchDistArcSec or maxMatchDist is used; if None then config.maxMatchDistArcSec is used |
Definition at line 171 of file matchOptimisticB.py.
|
staticprivate |
Definition at line 159 of file matchOptimisticB.py.
|
static |
Definition at line 158 of file matchOptimisticB.py.
lsst.meas.astrom.matchOptimisticB.MatchOptimisticBTask.edgeKey |
Definition at line 259 of file matchOptimisticB.py.
lsst.meas.astrom.matchOptimisticB.MatchOptimisticBTask.interpolatedCenterKey |
Definition at line 260 of file matchOptimisticB.py.
lsst.meas.astrom.matchOptimisticB.MatchOptimisticBTask.saturatedKey |
Definition at line 261 of file matchOptimisticB.py.