LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+bd2ed33bd6,g1470d8bcf6+de7501a2e0,g14a832a312+ff425fae3c,g2079a07aa2+86d27d4dc4,g2305ad1205+91a32aca49,g295015adf3+762506a1ad,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+c34e8be1fa,g487adcacf7+5fae3daba8,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+ea1711114f,g5a732f18d5+53520f316c,g64a986408d+bd2ed33bd6,g858d7b2824+bd2ed33bd6,g8a8a8dda67+585e252eca,g99cad8db69+016a06b37a,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+09e12c87ab,gc120e1dc64+bc2e06c061,gc28159a63d+0e5473021a,gcf0d15dbbd+c34e8be1fa,gdaeeff99f8+f9a426f77a,ge6526c86ff+508d0e0a30,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf18bd8381d+8d59551888,gf1cff7945b+bd2ed33bd6,w.2024.16
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: