LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
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: