LSSTApplications  18.0.0+60,19.0.0+2,19.0.0+29,19.0.0+30,19.0.0+32,19.0.0+37,19.0.0+6,19.0.0-1-g20d9b18+16,19.0.0-1-g49a97f9,19.0.0-1-g5549ca4+1,19.0.0-1-g6fe20d0+5,19.0.0-1-g8c57eb9+16,19.0.0-1-ga72da6b,19.0.0-1-gbfe0924+14,19.0.0-1-gdc0e4a7+28,19.0.0-1-ge272bc4+16,19.0.0-1-gefe1d0d+10,19.0.0-12-g03a29998f+1,19.0.0-2-g0d9f9cd+30,19.0.0-2-g260436e+14,19.0.0-2-g9675b69,19.0.0-2-g9b11441+17,19.0.0-2-gde8e5e3,19.0.0-2-gff6972b,19.0.0-20-g6de566f+6,19.0.0-23-g5d8da22d+1,19.0.0-3-g6513920+14,19.0.0-3-gce3f959+1,19.0.0-4-g98b4a13,19.0.0-5-g0745e3f+14,19.0.0-5-gf4bae50+10,19.0.0-6-gb5bb71e+5,19.0.0-7-g2584c99+1,19.0.0-7-g686a884+1,19.0.0-7-ga57c4689+4,19.0.0-9-g8509940+4,w.2020.06
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask Class Reference
Inheritance diagram for lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask:

Public Member Functions

def __init__ (self, schema, kwargs)
 
def run (self, sources, exposure)
 

Public Attributes

 schema
 
 photoKey
 
 photoErrKey
 
 cdMatrix11Key
 
 cdMatrix12Key
 
 cdMatrix21Key
 
 cdMatrix22Key
 

Static Public Attributes

 ConfigClass = EvaluateLocalCalibrationConfig
 

Detailed Description

Compute local calibrations from an input calexp and store the values per
row in a source catalog.

Parameters
----------
schema : `lsst.afw.table.Schema`
    Input SourceTable schema.

Definition at line 34 of file evaluateLocalCalibration.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.__init__ (   self,
  schema,
  kwargs 
)

Definition at line 46 of file evaluateLocalCalibration.py.

46  def __init__(self, schema, **kwargs):
47  pipeBase.Task.__init__(self, **kwargs)
48  self.schema = schema
49 
50  self.photoKey = self.schema.addField(
51  "base_localPhotoCalib",
52  type="D",
53  doc="Local approximation of the PhotoCalib calibration factor at "
54  "the location of the src.")
55  self.photoErrKey = self.schema.addField(
56  "base_localPhotoCalibErr",
57  type="D",
58  doc="Error on the local approximation of the PhotoCalib "
59  "calibration factor at the location of the src.")
60 
61  self.cdMatrix11Key = self.schema.addField(
62  "base_CDMatrix_1_1",
63  type="D",
64  doc="(1, 1) element of the CDMatrix for the linear approximation "
65  "of the WCS at the src location.")
66  self.cdMatrix12Key = self.schema.addField(
67  "base_CDMatrix_1_2",
68  type="D",
69  doc="(1, 2) element of the CDMatrix for the linear approximation "
70  "of the WCS at the src location.")
71  self.cdMatrix21Key = self.schema.addField(
72  "base_CDMatrix_2_1",
73  type="D",
74  doc="(2, 1) element of the CDMatrix for the linear approximation "
75  "of the WCS at the src location.")
76  self.cdMatrix22Key = self.schema.addField(
77  "base_CDMatrix_2_2",
78  type="D",
79  doc="(2, 2) element of the CDMatrix for the linear approximation "
80  "of the WCS at the src location.")
81 

Member Function Documentation

◆ run()

def lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.run (   self,
  sources,
  exposure 
)
Add calibration products to the source catalog given the calibrated
exposure.

Parameters
----------
sources : `lsst.afw.table.SourceTable`
    Catalog of sources to add local calibrations to.
exposure : `lsst.afw.image.Exposure`
    Calibrated exposure to strip local calibrations from.

Definition at line 82 of file evaluateLocalCalibration.py.

82  def run(self, sources, exposure):
83  """Add calibration products to the source catalog given the calibrated
84  exposure.
85 
86  Parameters
87  ----------
88  sources : `lsst.afw.table.SourceTable`
89  Catalog of sources to add local calibrations to.
90  exposure : `lsst.afw.image.Exposure`
91  Calibrated exposure to strip local calibrations from.
92  """
93  wcs = exposure.getWcs()
94  photoCalib = exposure.getPhotoCalib()
95  for srcRec in sources:
96  self._storePhotoCalib(srcRec, photoCalib)
97  self._storeWcs(srcRec, wcs)
98 
def run(self, skyInfo, tempExpRefList, imageScalerList, weightList, altMaskList=None, mask=None, supplementaryData=None)

Member Data Documentation

◆ cdMatrix11Key

lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.cdMatrix11Key

Definition at line 61 of file evaluateLocalCalibration.py.

◆ cdMatrix12Key

lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.cdMatrix12Key

Definition at line 66 of file evaluateLocalCalibration.py.

◆ cdMatrix21Key

lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.cdMatrix21Key

Definition at line 71 of file evaluateLocalCalibration.py.

◆ cdMatrix22Key

lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.cdMatrix22Key

Definition at line 76 of file evaluateLocalCalibration.py.

◆ ConfigClass

lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.ConfigClass = EvaluateLocalCalibrationConfig
static

Definition at line 43 of file evaluateLocalCalibration.py.

◆ photoErrKey

lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.photoErrKey

Definition at line 55 of file evaluateLocalCalibration.py.

◆ photoKey

lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.photoKey

Definition at line 50 of file evaluateLocalCalibration.py.

◆ schema

lsst.meas.base.evaluateLocalCalibration.EvaluateLocalCalibrationTask.schema

Definition at line 48 of file evaluateLocalCalibration.py.


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