LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Static Public Attributes | List of all members
lsst.meas.base.applyApCorr.ApCorrInfo Class Reference

Public Member Functions

def __init__ (self, schema, model, name=None)
 

Static Public Attributes

 name = None
 
 modelName = None
 
 modelSigmaName = None
 
 doApCorrColumn = None
 
 instFluxName = None
 
 instFluxErrName = None
 
 instFluxKey = None
 
 instFluxErrKey = None
 
 fluxFlagKey = None
 
 apCorrKey = None
 
 apCorrErrKey = None
 
 apCorrFlagKey = None
 

Detailed Description

Catalog field names and keys needed to aperture correct a particular
instrument flux.

Parameters
----------
schema : `lsst.afw.table`
    Source catalog schema. Three fields are used to generate keys:
    - ``{name}_instFlux``
    - ``{name}_instFluxErr``
    - ``{name}_flag``
    Three fields are added:
    - ``{name}_apCorr`` (only if not already added by proxy)
    - ``{name}_apCorrErr`` (only if not already added by proxy)
    - ``{name}_flag_apCorr``
model : `str`
    Field name prefix for instFlux with aperture correction model, e.g.
    "base_PsfFlux"
name : `str`
    Field name prefix for instFlux needing aperture correction; may be
    `None` if it is the same as ``model``

Notes
-----
The aperture correction can be derived from the meaasurements in the
column being aperture-corrected or from measurements in a different
column (a "proxy"). In the first case, we will add columns to contain
the aperture correction values; in the second case (using a proxy),
we will add an alias to the proxy's aperture correction values. In
all cases, we add a flag.

Definition at line 41 of file applyApCorr.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.base.applyApCorr.ApCorrInfo.__init__ (   self,
  schema,
  model,
  name = None 
)

Definition at line 123 of file applyApCorr.py.

123  def __init__(self, schema, model, name=None):
124  if name is None:
125  name = model
126  self.name = name
127  self.modelName = model + "_instFlux"
128  self.modelSigmaName = model + "_instFluxErr"
129  self.instFluxName = name + "_instFlux"
130  self.instFluxErrName = name + "_instFluxErr"
131  self.instFluxKey = schema.find(self.instFluxName).key
132  self.instFluxErrKey = schema.find(self.instFluxErrName).key
133  self.fluxFlagKey = schema.find(name + "_flag").key
134 
135  # No need to write the same aperture corrections multiple times
136  self.doApCorrColumn = (name == model or model + "_apCorr" not in schema)
137  if self.doApCorrColumn:
138  self.apCorrKey = schema.addField(
139  name + "_apCorr",
140  doc="aperture correction applied to %s" % (name,),
141  type=np.float64,
142  )
143  self.apCorrErrKey = schema.addField(
144  name + "_apCorrErr",
145  doc="standard deviation of aperture correction applied to %s" % (name,),
146  type=np.float64,
147  )
148  else:
149  aliases = schema.getAliasMap()
150  aliases.set(name + "_apCorr", model + "_apCorr")
151  aliases.set(name + "_apCorrErr", model + "_apCorrErr")
152  self.apCorrKey = schema.find(name + "_apCorr").key
153  self.apCorrErrKey = schema.find(name + "_apCorrErr").key
154 
155  self.apCorrFlagKey = schema.addField(
156  name + "_flag_apCorr",
157  doc="set if unable to aperture correct %s" % (name,),
158  type="Flag",
159  )
160 
161 

Member Data Documentation

◆ apCorrErrKey

lsst.meas.base.applyApCorr.ApCorrInfo.apCorrErrKey = None
static

Definition at line 115 of file applyApCorr.py.

◆ apCorrFlagKey

lsst.meas.base.applyApCorr.ApCorrInfo.apCorrFlagKey = None
static

Definition at line 119 of file applyApCorr.py.

◆ apCorrKey

lsst.meas.base.applyApCorr.ApCorrInfo.apCorrKey = None
static

Definition at line 111 of file applyApCorr.py.

◆ doApCorrColumn

lsst.meas.base.applyApCorr.ApCorrInfo.doApCorrColumn = None
static

Definition at line 85 of file applyApCorr.py.

◆ fluxFlagKey

lsst.meas.base.applyApCorr.ApCorrInfo.fluxFlagKey = None
static

Definition at line 107 of file applyApCorr.py.

◆ instFluxErrKey

lsst.meas.base.applyApCorr.ApCorrInfo.instFluxErrKey = None
static

Definition at line 103 of file applyApCorr.py.

◆ instFluxErrName

lsst.meas.base.applyApCorr.ApCorrInfo.instFluxErrName = None
static

Definition at line 95 of file applyApCorr.py.

◆ instFluxKey

lsst.meas.base.applyApCorr.ApCorrInfo.instFluxKey = None
static

Definition at line 99 of file applyApCorr.py.

◆ instFluxName

lsst.meas.base.applyApCorr.ApCorrInfo.instFluxName = None
static

Definition at line 91 of file applyApCorr.py.

◆ modelName

lsst.meas.base.applyApCorr.ApCorrInfo.modelName = None
static

Definition at line 77 of file applyApCorr.py.

◆ modelSigmaName

lsst.meas.base.applyApCorr.ApCorrInfo.modelSigmaName = None
static

Definition at line 81 of file applyApCorr.py.

◆ name

lsst.meas.base.applyApCorr.ApCorrInfo.name = None
static

Definition at line 73 of file applyApCorr.py.


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