LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
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 31 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 121 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 44 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 98 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 113 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 106 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 70 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 49 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 129 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 75 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 93 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 88 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 39 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 59 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 33 of file matchBackgrounds.py.


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