lsst.meas.algorithms  13.0-23-gb99accf8+8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.algorithms.measureApCorr.MeasureApCorrTask Class Reference

Task to measure aperture correction. More...

Inheritance diagram for lsst.meas.algorithms.measureApCorr.MeasureApCorrTask:

Public Member Functions

def __init__
 Construct a MeasureApCorrTask. More...
 
def run
 Measure aperture correction. More...
 

Public Attributes

 refFluxKeys
 
 toCorrect
 

Static Public Attributes

 ConfigClass = MeasureApCorrConfig
 

Detailed Description

Task to measure aperture correction.

Contents

Description

Task to measure aperture correction.

This task measures aperture correction for the flux fields returned by lsst.meas.base.getApCorrNameSet()

The main method is run.

Configuration parameters

See MeasureApCorrConfig

Debug variables

The command line task interface supports a flag --debug to import debug.py from your $PYTHONPATH; see baseDebug for more about debug.py.

MeasureApCorrTask has a debug dictionary containing a single boolean key:

display
If True: will show plots as aperture corrections are fitted

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 == "lsst.meas.algorithms.measureApCorr":
5  di.display = dict(
6  unsubtracted = 1,
7  subtracted = 2,
8  background = 3,
9  )
10 
11  return di
12 
13 lsstDebug.Info = DebugInfo

into your debug.py file and run your command-line task with the --debug flag (or import debug).

Definition at line 118 of file measureApCorr.py.

Constructor & Destructor Documentation

def lsst.meas.algorithms.measureApCorr.MeasureApCorrTask.__init__ (   self,
  schema,
  kwds 
)

Construct a MeasureApCorrTask.

For every name in lsst.meas.base.getApCorrNameSet():

  • If the corresponding flux fields exist in the schema:
    • Add a new field apcorr_{name}_used
    • Add an entry to the self.toCorrect dict
  • Otherwise silently skip the name

Definition at line 172 of file measureApCorr.py.

Member Function Documentation

def lsst.meas.algorithms.measureApCorr.MeasureApCorrTask.run (   self,
  exposure,
  catalog 
)

Measure aperture correction.

Parameters
[in]exposureExposure aperture corrections are being measured on. Aside from the bounding box, the exposure is only used by the starSelector subtask (which may need it to construct PsfCandidates, as PsfCanidate construction can do some filtering). The output aperture correction map is not added to the exposure; this is left to the caller.
[in]catalogSourceCatalog containing measurements to be used to compute aperturecorrections.
Returns
an lsst.pipe.base.Struct containing:
  • apCorrMap: an aperture correction map (lsst.afw.image.ApCorrMap) that contains two entries for each flux field:
    • flux field (e.g. base_PsfFlux_flux): 2d model
    • flux sigma field (e.g. base_PsfFlux_fluxSigma): 2d model of error

Definition at line 192 of file measureApCorr.py.

Member Data Documentation

lsst.meas.algorithms.measureApCorr.MeasureApCorrTask.ConfigClass = MeasureApCorrConfig
static

Definition at line 169 of file measureApCorr.py.

lsst.meas.algorithms.measureApCorr.MeasureApCorrTask.refFluxKeys

Definition at line 182 of file measureApCorr.py.

lsst.meas.algorithms.measureApCorr.MeasureApCorrTask.toCorrect

Definition at line 183 of file measureApCorr.py.


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