lsst.meas.algorithms  15.0-7-gab79a70c+6
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.algorithms.flaggedStarSelector.FlaggedStarSelectorTask Class Reference

A trivial StarSelector that simply uses an existing flag field to filter a SourceCatalog. More...

Inheritance diagram for lsst.meas.algorithms.flaggedStarSelector.FlaggedStarSelectorTask:
lsst.meas.algorithms.starSelector.BaseStarSelectorTask

Public Member Functions

def __init__ (self, schema, kwds)
 
def selectStars (self, exposure, sourceCat, matches=None)
 
def run (self, exposure, sourceCat, matches=None, isStarField=None)
 Select stars, make PSF candidates, and set a flag field True for stars in the input catalog. More...
 
def makePsfCandidates (self, exposure, starCat)
 Make a list of PSF candidates from a star catalog. More...
 

Public Attributes

 key
 

Static Public Attributes

bool usesMatches = False
 
 ConfigClass = FlaggedStarSelectorConfig
 

Detailed Description

A trivial StarSelector that simply uses an existing flag field to filter a SourceCatalog.

This is most frequently used in steps that occur after the a PSF model has been built, to allow other procedures that need stars to use the set of stars used to determine the PSF.

Definition at line 39 of file flaggedStarSelector.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.algorithms.flaggedStarSelector.FlaggedStarSelectorTask.__init__ (   self,
  schema,
  kwds 
)

Definition at line 51 of file flaggedStarSelector.py.

Member Function Documentation

◆ makePsfCandidates()

def lsst.meas.algorithms.starSelector.BaseStarSelectorTask.makePsfCandidates (   self,
  exposure,
  starCat 
)
inherited

Make a list of PSF candidates from a star catalog.

Parameters
[in]exposurethe exposure containing the sources
[in]starCatcatalog of stars (an lsst.afw.table.SourceCatalog), e.g. as returned by the run or selectStars method
Returns
an lsst.pipe.base.Struct with fields:
  • psfCandidates list of PSF candidates (lsst.meas.algorithms.PsfCandidate)
  • goodStarCat catalog of stars that were successfully made into PSF candidates (a subset of starCat)

Definition at line 128 of file starSelector.py.

◆ run()

def lsst.meas.algorithms.starSelector.BaseStarSelectorTask.run (   self,
  exposure,
  sourceCat,
  matches = None,
  isStarField = None 
)
inherited

Select stars, make PSF candidates, and set a flag field True for stars in the input catalog.

Parameters
[in]exposurethe exposure containing the sources
[in]sourceCatcatalog of sources that may be stars (an lsst.afw.table.SourceCatalog)
[in]matchesastrometric matches; ignored by this star selector (an lsst.afw.table.ReferenceMatchVector), or None. Some star selectors will ignore this argument, others may require it. See the usesMatches class variable.
[in]isStarFieldname of flag field to set True for stars, or None to not set a field; the field is left unchanged for non-stars
Returns
an lsst.pipe.base.Struct containing:
  • starCat catalog of stars that were selected as stars and successfuly made into PSF candidates (a subset of sourceCat whose records are shallow copies)
  • psfCandidates list of PSF candidates (lsst.meas.algorithms.PsfCandidate)

Definition at line 80 of file starSelector.py.

◆ selectStars()

def lsst.meas.algorithms.flaggedStarSelector.FlaggedStarSelectorTask.selectStars (   self,
  exposure,
  sourceCat,
  matches = None 
)

Definition at line 55 of file flaggedStarSelector.py.

Member Data Documentation

◆ ConfigClass

lsst.meas.algorithms.flaggedStarSelector.FlaggedStarSelectorTask.ConfigClass = FlaggedStarSelectorConfig
static

Definition at line 49 of file flaggedStarSelector.py.

◆ key

lsst.meas.algorithms.flaggedStarSelector.FlaggedStarSelectorTask.key

Definition at line 53 of file flaggedStarSelector.py.

◆ usesMatches

bool lsst.meas.algorithms.flaggedStarSelector.FlaggedStarSelectorTask.usesMatches = False
static

Definition at line 48 of file flaggedStarSelector.py.


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