LSST Applications 24.1.5,g02d81e74bb+fa3a7a026e,g180d380827+a53a32eff8,g2079a07aa2+86d27d4dc4,g2305ad1205+c0501b3732,g295015adf3+7d3e92f0ec,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g33d1c0ed96+0e5473021a,g3a166c0a6a+0e5473021a,g3ddfee87b4+5dd1654d75,g48712c4677+3bf1020dcb,g487adcacf7+065c13d9cf,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+d7ac436cfb,g5a732f18d5+53520f316c,g64a986408d+fa3a7a026e,g858d7b2824+fa3a7a026e,g8a8a8dda67+585e252eca,g99cad8db69+a5a909b84f,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+4cf350ccb2,gb0e22166c9+60f28cb32d,gba4ed39666+c2a2e4ac27,gbb8dafda3b+f991a0b59f,gc120e1dc64+9ccbfdb8be,gc28159a63d+0e5473021a,gcf0d15dbbd+5dd1654d75,gd96a1ce819+42fd0ee607,gdaeeff99f8+f9a426f77a,ge6526c86ff+0d71447b4b,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gff1a9f87cc+fa3a7a026e
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.base.plugins.EvaluateLocalPhotoCalibPlugin Class Reference
Inheritance diagram for lsst.meas.base.plugins.EvaluateLocalPhotoCalibPlugin:
lsst.meas.base.wrappers.GenericPlugin lsst.meas.base.pluginsBase.BasePlugin

Public Member Functions

 getExecutionOrder (cls)
 
 __init__ (self, config, name, schema, metadata)
 
 measure (self, measRecord, exposure, center)
 

Public Attributes

 photoKey
 
 photoErrKey
 

Static Public Attributes

 ConfigClass = EvaluateLocalPhotoCalibPluginConfig
 

Detailed Description

Evaluate the local value of the Photometric Calibration in the exposure.

The aim is to store the local calib value within the catalog for later
use in the Science Data Model functors.

Definition at line 416 of file plugins.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.meas.base.plugins.EvaluateLocalPhotoCalibPlugin.__init__ ( self,
config,
name,
schema,
metadata )

Reimplemented from lsst.meas.base.wrappers.GenericPlugin.

Definition at line 428 of file plugins.py.

428 def __init__(self, config, name, schema, metadata):
429 GenericPlugin.__init__(self, config, name, schema, metadata)
430 self.photoKey = schema.addField(
431 name,
432 type="D",
433 doc="Local approximation of the PhotoCalib calibration factor at "
434 "the location of the src.")
435 self.photoErrKey = schema.addField(
436 "%sErr" % name,
437 type="D",
438 doc="Error on the local approximation of the PhotoCalib "
439 "calibration factor at the location of the src.")
440

Member Function Documentation

◆ getExecutionOrder()

lsst.meas.base.plugins.EvaluateLocalPhotoCalibPlugin.getExecutionOrder ( cls)
Get the relative execution order of this plugin.

Must be reimplemented as a class method by concrete derived classes.

Reimplemented from lsst.meas.base.wrappers.GenericPlugin.

Definition at line 425 of file plugins.py.

425 def getExecutionOrder(cls):
426 return BasePlugin.FLUX_ORDER
427

◆ measure()

lsst.meas.base.plugins.EvaluateLocalPhotoCalibPlugin.measure ( self,
measRecord,
exposure,
center )
Measure a single source.

It is the responsibility of this method to perform the desired
measurement and record the result in the `measRecord`.

Parameters
----------
measRecord : `lsst.afw.table.SourceRecord`
    Catalog record for the source being measured.
exposure : `lsst.afw.image.Exposure`
    Exposure on which the source is being measured.
center : `lsst.geom.Point2D`
    Pixel coordinates of the object.

Raises
------
MeasurementError
    Raised if the measurement fails for a known/justifiable reason.

Reimplemented from lsst.meas.base.wrappers.GenericPlugin.

Definition at line 441 of file plugins.py.

441 def measure(self, measRecord, exposure, center):
442
443 photoCalib = exposure.getPhotoCalib()
444 calib = photoCalib.getLocalCalibration(center)
445 measRecord.set(self.photoKey, calib)
446
447 calibErr = photoCalib.getCalibrationErr()
448 measRecord.set(self.photoErrKey, calibErr)
449
450

Member Data Documentation

◆ ConfigClass

lsst.meas.base.plugins.EvaluateLocalPhotoCalibPlugin.ConfigClass = EvaluateLocalPhotoCalibPluginConfig
static

Definition at line 422 of file plugins.py.

◆ photoErrKey

lsst.meas.base.plugins.EvaluateLocalPhotoCalibPlugin.photoErrKey

Definition at line 435 of file plugins.py.

◆ photoKey

lsst.meas.base.plugins.EvaluateLocalPhotoCalibPlugin.photoKey

Definition at line 430 of file plugins.py.


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