LSST Applications  21.0.0+04719a4bac,21.0.0-1-ga51b5d4+f5e6047307,21.0.0-11-g2b59f77+a9c1acf22d,21.0.0-11-ga42c5b2+86977b0b17,21.0.0-12-gf4ce030+76814010d2,21.0.0-13-g1721dae+760e7a6536,21.0.0-13-g3a573fe+768d78a30a,21.0.0-15-g5a7caf0+f21cbc5713,21.0.0-16-g0fb55c1+b60e2d390c,21.0.0-19-g4cded4ca+71a93a33c0,21.0.0-2-g103fe59+bb20972958,21.0.0-2-g45278ab+04719a4bac,21.0.0-2-g5242d73+3ad5d60fb1,21.0.0-2-g7f82c8f+8babb168e8,21.0.0-2-g8f08a60+06509c8b61,21.0.0-2-g8faa9b5+616205b9df,21.0.0-2-ga326454+8babb168e8,21.0.0-2-gde069b7+5e4aea9c2f,21.0.0-2-gecfae73+1d3a86e577,21.0.0-2-gfc62afb+3ad5d60fb1,21.0.0-25-g1d57be3cd+e73869a214,21.0.0-3-g357aad2+ed88757d29,21.0.0-3-g4a4ce7f+3ad5d60fb1,21.0.0-3-g4be5c26+3ad5d60fb1,21.0.0-3-g65f322c+e0b24896a3,21.0.0-3-g7d9da8d+616205b9df,21.0.0-3-ge02ed75+a9c1acf22d,21.0.0-4-g591bb35+a9c1acf22d,21.0.0-4-g65b4814+b60e2d390c,21.0.0-4-gccdca77+0de219a2bc,21.0.0-4-ge8a399c+6c55c39e83,21.0.0-5-gd00fb1e+05fce91b99,21.0.0-6-gc675373+3ad5d60fb1,21.0.0-64-g1122c245+4fb2b8f86e,21.0.0-7-g04766d7+cd19d05db2,21.0.0-7-gdf92d54+04719a4bac,21.0.0-8-g5674e7b+d1bd76f71f,master-gac4afde19b+a9c1acf22d,w.2021.13
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: