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 | Static Public Attributes | List of all members
lsst.meas.base.applyApCorr.ApCorrInfo Class Reference

Public Member Functions

 __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 40 of file applyApCorr.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 122 of file applyApCorr.py.

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

Member Data Documentation

◆ apCorrErrKey

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

Definition at line 114 of file applyApCorr.py.

◆ apCorrFlagKey

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

Definition at line 118 of file applyApCorr.py.

◆ apCorrKey

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

Definition at line 110 of file applyApCorr.py.

◆ doApCorrColumn

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

Definition at line 84 of file applyApCorr.py.

◆ fluxFlagKey

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

Definition at line 106 of file applyApCorr.py.

◆ instFluxErrKey

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

Definition at line 102 of file applyApCorr.py.

◆ instFluxErrName

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

Definition at line 94 of file applyApCorr.py.

◆ instFluxKey

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

Definition at line 98 of file applyApCorr.py.

◆ instFluxName

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

Definition at line 90 of file applyApCorr.py.

◆ modelName

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

Definition at line 76 of file applyApCorr.py.

◆ modelSigmaName

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

Definition at line 80 of file applyApCorr.py.

◆ name

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

Definition at line 72 of file applyApCorr.py.


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