LSST Applications g1653933729+a8ce1bb630,g171997e3ee+76e92115be,g1a997c3884+a8ce1bb630,g28da252d5a+4013ff5194,g2bbee38e9b+d6d0f9f6ae,g2bc492864f+d6d0f9f6ae,g2cdde0e794+ccb74358b7,g3156d2b45e+07302053f8,g347aa1857d+d6d0f9f6ae,g35bb328faa+a8ce1bb630,g3a166c0a6a+d6d0f9f6ae,g3e281a1b8c+130fae20e3,g4005a62e65+17cd334064,g414038480c+c9f68e2a12,g41af890bb2+3e1f62f438,g4e1a3235cc+9db7d56ad0,g7b55021d1b+7b623691d5,g80478fca09+334cc8d2bd,g82479be7b0+b568f6b267,g858d7b2824+37b39d8760,g9125e01d80+a8ce1bb630,ga5288a1d22+11cb34fefe,gae0086650b+a8ce1bb630,gb4ec7eb0ab+37b39d8760,gb58c049af0+d64f4d3760,gc081298178+284e133171,gc28159a63d+d6d0f9f6ae,gcf0d15dbbd+00fe2e0b07,gd6b7c0dfd1+8b62435e69,gda3e153d99+37b39d8760,gda6a2b7d83+00fe2e0b07,gdaeeff99f8+1711a396fd,gdd5a9049c5+23f3b3239a,ge2409df99d+5d9f551a54,ge33fd446bb+37b39d8760,ge79ae78c31+d6d0f9f6ae,gf0baf85859+2dea8344a2,gf5289d68f6+3777f3df5e,w.2024.41
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.photoCal.PhotoCalConfig Class Reference
Inheritance diagram for lsst.pipe.tasks.photoCal.PhotoCalConfig:

Public Member Functions

 validate (self)
 
 setDefaults (self)
 

Static Public Attributes

 match
 
 reserve = pexConf.ConfigurableField(target=ReserveSourcesTask, doc="Reserve sources from fitting")
 
 fluxField
 
 applyColorTerms
 
 sigmaMax
 
 nSigma
 
 useMedian
 
 nIter
 
 colorterms
 
 photoCatName
 
 magErrFloor
 

Detailed Description

Config for PhotoCal.

Definition at line 41 of file photoCal.py.

Member Function Documentation

◆ setDefaults()

lsst.pipe.tasks.photoCal.PhotoCalConfig.setDefaults ( self)

Definition at line 107 of file photoCal.py.

107 def setDefaults(self):
108 pexConf.Config.setDefaults(self)
109 self.match.sourceSelection.doRequirePrimary = True
110 self.match.sourceSelection.doFlags = True
111 self.match.sourceSelection.flags.bad = [
112 "base_PixelFlags_flag_edge",
113 "base_PixelFlags_flag_interpolated",
114 "base_PixelFlags_flag_saturated",
115 ]
116 self.match.sourceSelection.doUnresolved = True
117
118

◆ validate()

lsst.pipe.tasks.photoCal.PhotoCalConfig.validate ( self)

Definition at line 100 of file photoCal.py.

100 def validate(self):
101 pexConf.Config.validate(self)
102 if self.applyColorTerms and self.photoCatName is None:
103 raise RuntimeError("applyColorTerms=True requires photoCatName is non-None")
104 if self.applyColorTerms and len(self.colorterms.data) == 0:
105 raise RuntimeError("applyColorTerms=True requires colorterms be provided")
106

Member Data Documentation

◆ applyColorTerms

lsst.pipe.tasks.photoCal.PhotoCalConfig.applyColorTerms
static
Initial value:
= pexConf.Field(
dtype=bool,
default=False,
doc=("Apply photometric color terms to reference stars?\n"
"`True`: attempt to apply color terms; fail if color term data is "
"not available for the specified reference catalog and filter.\n"
"`False`: do not apply color terms."),
optional=True,
)

Definition at line 53 of file photoCal.py.

◆ colorterms

lsst.pipe.tasks.photoCal.PhotoCalConfig.colorterms
static
Initial value:
= pexConf.ConfigField(
dtype=ColortermLibrary,
doc="Library of photometric reference catalog name: color term dict (see also applyColorTerms).",
)

Definition at line 83 of file photoCal.py.

◆ fluxField

lsst.pipe.tasks.photoCal.PhotoCalConfig.fluxField
static
Initial value:
= pexConf.Field(
dtype=str,
default="slot_CalibFlux_instFlux",
doc=("Name of the source instFlux field to use.\nThe associated flag field "
"('<name>_flags') will be implicitly included in badFlags."),
)

Definition at line 47 of file photoCal.py.

◆ magErrFloor

lsst.pipe.tasks.photoCal.PhotoCalConfig.magErrFloor
static
Initial value:
= pexConf.RangeField(
dtype=float,
default=0.0,
doc="Additional magnitude uncertainty to be added in quadrature with measurement errors.",
min=0.0,
)

Definition at line 93 of file photoCal.py.

◆ match

lsst.pipe.tasks.photoCal.PhotoCalConfig.match
static
Initial value:
= pexConf.ConfigField("Match to reference catalog",
DirectMatchConfigWithoutLoader)

Definition at line 44 of file photoCal.py.

◆ nIter

lsst.pipe.tasks.photoCal.PhotoCalConfig.nIter
static
Initial value:
= pexConf.Field(
dtype=int,
default=20,
doc="number of iterations",
)

Definition at line 78 of file photoCal.py.

◆ nSigma

lsst.pipe.tasks.photoCal.PhotoCalConfig.nSigma
static
Initial value:
= pexConf.Field(
dtype=float,
default=3.0,
doc="clip at nSigma",
)

Definition at line 68 of file photoCal.py.

◆ photoCatName

lsst.pipe.tasks.photoCal.PhotoCalConfig.photoCatName
static
Initial value:
= pexConf.Field(
dtype=str,
optional=True,
doc=("Name of photometric reference catalog; used to select a color term dict in colorterms.\n"
"See also applyColorTerms."),
)

Definition at line 87 of file photoCal.py.

◆ reserve

lsst.pipe.tasks.photoCal.PhotoCalConfig.reserve = pexConf.ConfigurableField(target=ReserveSourcesTask, doc="Reserve sources from fitting")
static

Definition at line 46 of file photoCal.py.

◆ sigmaMax

lsst.pipe.tasks.photoCal.PhotoCalConfig.sigmaMax
static
Initial value:
= pexConf.Field(
dtype=float,
default=0.25,
doc="maximum sigma to use when clipping",
optional=True,
)

Definition at line 62 of file photoCal.py.

◆ useMedian

lsst.pipe.tasks.photoCal.PhotoCalConfig.useMedian
static
Initial value:
= pexConf.Field(
dtype=bool,
default=True,
doc="use median instead of mean to compute zeropoint",
)

Definition at line 73 of file photoCal.py.


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