lsst.meas.astrom  13.0-16-g30f6da5+8
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
lsst.meas.astrom.catalogStarSelector.CatalogStarSelectorTask Class Reference

Select stars based on a reference catalog. More...

Inheritance diagram for lsst.meas.astrom.catalogStarSelector.CatalogStarSelectorTask:

Public Member Functions

def selectStars
 Return a list of PSF candidates that represent likely stars. More...
 

Static Public Attributes

 ConfigClass = CatalogStarSelectorConfig
 
 usesMatches = True
 

Detailed Description

Select stars based on a reference catalog.

Contents

Description

Select stars using a match list: select sources where the matching reference object is unresolved, plus the source passes the following tests:

Task initialisation

Invoking the Task

Like all star selectors, the main method is run. Unlike most star selectors, this one requires the matches argument (the usesMatches property is true).

Configuration parameters

See CatalogStarSelectorConfig

Debug variables

CatalogStarSelectorTask has a debug dictionary with the following keys:

display
bool; if True display debug information
pauseAtEnd
bool; if True wait after displaying everything and wait for user input

For example, put something like:

1 import lsstDebug
2 def DebugInfo(name):
3  di = lsstDebug.getInfo(name) # N.b. lsstDebug.Info(name) would call us recursively
4  if name.endswith("catalogStarSelector"):
5  di.display = True
6 
7  return di
8 
9 lsstDebug.Info = DebugInfo

into your debug.py file and run your task with the --debug flag.

Definition at line 86 of file catalogStarSelector.py.

Member Function Documentation

def lsst.meas.astrom.catalogStarSelector.CatalogStarSelectorTask.selectStars (   self,
  exposure,
  sourceCat,
  matches = None 
)

Return a list of PSF candidates that represent likely stars.

A list of PSF candidates may be used by a PSF fitter to construct a PSF.

Parameters
[in]exposurethe exposure containing the sources
[in]sourceCatcatalog of sources that may be stars (an lsst.afw.table.SourceCatalog)
[in]matchesa match vector as produced by meas_astrom; required (defaults to None to match the StarSelector API and improve error handling)
Returns
an lsst.pipe.base.Struct containing:
  • starCat catalog of selected stars (a subset of sourceCat)

Definition at line 147 of file catalogStarSelector.py.

Member Data Documentation

lsst.meas.astrom.catalogStarSelector.CatalogStarSelectorTask.ConfigClass = CatalogStarSelectorConfig
static

Definition at line 144 of file catalogStarSelector.py.

lsst.meas.astrom.catalogStarSelector.CatalogStarSelectorTask.usesMatches = True
static

Definition at line 145 of file catalogStarSelector.py.


The documentation for this class was generated from the following file: