LSST Applications g0fba68d861+bb7a7cfa1f,g1ec0fe41b4+f536777771,g1fd858c14a+470a99fdf4,g216c3ac8a7+0d4d80193f,g35bb328faa+fcb1d3bbc8,g4d2262a081+23bd310d1b,g53246c7159+fcb1d3bbc8,g56a49b3a55+369644a549,g5a012ec0e7+3632fc3ff3,g60b5630c4e+3bfb9058a5,g67b6fd64d1+ed4b5058f4,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g8180f54f50+60bd39f3b6,g8352419a5c+fcb1d3bbc8,g87d29937c9+57a68d035f,g8852436030+4699110379,g89139ef638+ed4b5058f4,g9125e01d80+fcb1d3bbc8,g94187f82dc+3bfb9058a5,g989de1cb63+ed4b5058f4,g9ccd5d7f00+b7cae620c0,g9d31334357+3bfb9058a5,g9f33ca652e+00883ace41,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+27b24065a3,gb58c049af0+f03b321e39,gb89ab40317+ed4b5058f4,gc0af124501+708fe67c54,gcf25f946ba+4699110379,gd6cbbdb0b4+bb83cc51f8,gde0f65d7ad+acd5afb0eb,ge1ad929117+3bfb9058a5,ge278dab8ac+d65b3c2b70,ge410e46f29+ed4b5058f4,gf5e32f922b+fcb1d3bbc8,gf67bdafdda+ed4b5058f4,w.2025.17
LSST Data Management Base Package
Loading...
Searching...
No Matches
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 113 of file photoCal.py.

113 def setDefaults(self):
114 pexConf.Config.setDefaults(self)
115 self.match.sourceSelection.doRequirePrimary = True
116 self.match.sourceSelection.doFlags = True
117 self.match.sourceSelection.flags.bad = [
118 "base_PixelFlags_flag_edge",
119 "base_PixelFlags_flag_nodata",
120 "base_PixelFlags_flag_interpolated",
121 "base_PixelFlags_flag_saturated",
122 ]
123 self.match.sourceSelection.doUnresolved = True
124 self.match.sourceSelection.doSignalToNoise = True
125 self.match.sourceSelection.signalToNoise.minimum = 10.0
126 self.match.sourceSelection.signalToNoise.fluxField = self.fluxField
127 self.match.sourceSelection.signalToNoise.errField = self.fluxField + "Err"
128
129

◆ 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 if self.fluxField != self.match.sourceSelection.signalToNoise.fluxField:
107 raise RuntimeError("Configured flux field %s does not match source selector field %s",
108 self.fluxField, self.match.sourceSelection.signalToNoise.fluxField)
109 if self.fluxField + "Err" != self.match.sourceSelection.signalToNoise.errField:
110 raise RuntimeError("Configured flux field %sErr does not match source selector error field %s",
111 self.fluxField, self.match.sourceSelection.signalToNoise.errField)
112

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: