LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+a41d3748ce,g1470d8bcf6+6be6c9203b,g2079a07aa2+14824f138e,g212a7c68fe+a4f2ea4efa,g2305ad1205+72971fe858,g295015adf3+ab2c85acae,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+31b3a28dff,g487adcacf7+082e807817,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+b2918d57ae,g5a732f18d5+66d966b544,g64a986408d+a41d3748ce,g858d7b2824+a41d3748ce,g8a8a8dda67+a6fc98d2e7,g99cad8db69+7fe4acdf18,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+84af8b3ff8,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gba4ed39666+9664299f35,gbb8dafda3b+d8d527deb2,gc07e1c2157+b2dbe6b631,gc120e1dc64+61440b2abb,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+31b3a28dff,gdaeeff99f8+a38ce5ea23,ge6526c86ff+39927bb362,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+a41d3748ce,v24.1.5.rc1
LSST Data Management Base Package
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig Class Reference
Inheritance diagram for lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig:

Static Public Attributes

 usePolynomial
 
 order
 
 badMaskPlanes
 
 gridStatistic
 
 undersampleStyle
 
 binSize
 
 interpStyle
 
 numSigmaClip
 
 numIter
 
 bestRefWeightCoverage
 
 bestRefWeightVariance
 
 bestRefWeightLevel
 
 approxWeighting
 
 gridStdevEpsilon
 

Detailed Description

Definition at line 34 of file matchBackgrounds.py.

Member Data Documentation

◆ approxWeighting

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.approxWeighting
static
Initial value:
= pexConfig.Field(
dtype=bool,
doc=("Use inverse-variance weighting when approximating background offset model? "
"This will fail when the background offset is constant "
"(this is usually only the case in testing with artificial images)."
"(usePolynomial=True)"),
default=True,
)

Definition at line 124 of file matchBackgrounds.py.

◆ badMaskPlanes

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.badMaskPlanes
static
Initial value:
= pexConfig.ListField(
doc="Names of mask planes to ignore while estimating the background",
dtype=str, default=["NO_DATA", "DETECTED", "DETECTED_NEGATIVE", "SAT", "BAD", "INTRP", "CR"],
itemCheck=lambda x: x in afwImage.Mask().getMaskPlaneDict(),
)
Represent a 2-dimensional array of bitmask pixels.
Definition Mask.h:77

Definition at line 47 of file matchBackgrounds.py.

◆ bestRefWeightCoverage

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.bestRefWeightCoverage
static
Initial value:
= pexConfig.RangeField(
dtype=float,
doc="Weight given to coverage (number of pixels that overlap with patch), "
"when calculating best reference exposure. Higher weight prefers exposures with high coverage."
"Ignored when reference visit is supplied",
default=0.4,
min=0., max=1.
)

Definition at line 101 of file matchBackgrounds.py.

◆ bestRefWeightLevel

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.bestRefWeightLevel
static
Initial value:
= pexConfig.RangeField(
dtype=float,
doc="Weight given to mean background level when calculating best reference exposure. "
"Higher weight prefers exposures with low mean background level. "
"Ignored when reference visit is supplied.",
default=0.2,
min=0., max=1.
)

Definition at line 116 of file matchBackgrounds.py.

◆ bestRefWeightVariance

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.bestRefWeightVariance
static
Initial value:
= pexConfig.RangeField(
dtype=float,
doc="Weight given to image variance when calculating best reference exposure. "
"Higher weight prefers exposures with low image variance. Ignored when reference visit is supplied",
default=0.4,
min=0., max=1.
)

Definition at line 109 of file matchBackgrounds.py.

◆ binSize

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.binSize
static
Initial value:
= pexConfig.Field(
doc="Bin size for gridding the difference image and fitting a spatial model",
dtype=int,
default=256
)

Definition at line 73 of file matchBackgrounds.py.

◆ gridStatistic

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.gridStatistic
static
Initial value:
= pexConfig.ChoiceField(
dtype=str,
doc="Type of statistic to estimate pixel value for the grid points",
default="MEAN",
allowed={
"MEAN": "mean",
"MEDIAN": "median",
"MEANCLIP": "clipped mean"
}
)

Definition at line 52 of file matchBackgrounds.py.

◆ gridStdevEpsilon

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.gridStdevEpsilon
static
Initial value:
= pexConfig.RangeField(
dtype=float,
doc="Tolerance on almost zero standard deviation in a background-offset grid bin. "
"If all bins have a standard deviation below this value, the background offset model "
"is approximated without inverse-variance weighting. (usePolynomial=True)",
default=1e-8,
min=0.
)

Definition at line 132 of file matchBackgrounds.py.

◆ interpStyle

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.interpStyle
static
Initial value:
= pexConfig.ChoiceField(
dtype=str,
doc="Algorithm to interpolate the background values; ignored if usePolynomial is True"
"Maps to an enum; see afw.math.Background",
default="AKIMA_SPLINE",
allowed={
"CONSTANT": "Use a single constant value",
"LINEAR": "Use linear interpolation",
"NATURAL_SPLINE": "cubic spline with zero second derivative at endpoints",
"AKIMA_SPLINE": "higher-level nonlinear spline that is more robust to outliers",
"NONE": "No background estimation is to be attempted",
}
)

Definition at line 78 of file matchBackgrounds.py.

◆ numIter

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.numIter
static
Initial value:
= pexConfig.Field(
dtype=int,
doc="Number of iterations of outlier rejection; ignored if gridStatistic != 'MEANCLIP'.",
default=2
)

Definition at line 96 of file matchBackgrounds.py.

◆ numSigmaClip

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.numSigmaClip
static
Initial value:
= pexConfig.Field(
dtype=int,
doc="Sigma for outlier rejection; ignored if gridStatistic != 'MEANCLIP'.",
default=3
)

Definition at line 91 of file matchBackgrounds.py.

◆ order

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.order
static
Initial value:
= pexConfig.Field(
dtype=int,
doc="Order of Chebyshev polynomial background model. Ignored if usePolynomial False",
default=8
)

Definition at line 42 of file matchBackgrounds.py.

◆ undersampleStyle

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.undersampleStyle
static
Initial value:
= pexConfig.ChoiceField(
doc="Behaviour if there are too few points in grid for requested interpolation style. "
"Note: INCREASE_NXNYSAMPLE only allowed for usePolynomial=True.",
dtype=str,
default="REDUCE_INTERP_ORDER",
allowed={
"THROW_EXCEPTION": "throw an exception if there are too few points",
"REDUCE_INTERP_ORDER": "use an interpolation style with a lower order.",
"INCREASE_NXNYSAMPLE": "Increase the number of samples used to make the interpolation grid.",
}
)

Definition at line 62 of file matchBackgrounds.py.

◆ usePolynomial

lsst.pipe.tasks.matchBackgrounds.MatchBackgroundsConfig.usePolynomial
static
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Fit background difference with Chebychev polynomial interpolation "
"(using afw.math.Approximate)? If False, fit with spline interpolation using afw.math.Background",
default=False
)

Definition at line 36 of file matchBackgrounds.py.


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