LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.algorithms.detection.BackgroundConfig Class Reference

Config for background estimation. More...

Inheritance diagram for lsst.meas.algorithms.detection.BackgroundConfig:

Public Member Functions

def validate
 

Public Attributes

 algorithm
 

Static Public Attributes

tuple statisticsProperty
 
tuple undersampleStyle
 
tuple binSize
 
tuple algorithm
 
tuple ignoredPixelMask
 
tuple isNanSafe
 
tuple useApprox
 
tuple approxOrderX
 
tuple approxOrderY
 
tuple weighting
 

Detailed Description

Config for background estimation.

Definition at line 38 of file detection.py.

Member Function Documentation

def lsst.meas.algorithms.detection.BackgroundConfig.validate (   self)

Definition at line 104 of file detection.py.

105  def validate(self):
106  pexConfig.Config.validate(self)
107  # Allow None to be used as an equivalent for "NONE", even though C++ expects the latter.
108  if self.algorithm is None:
109  self.algorithm = "NONE"

Member Data Documentation

tuple lsst.meas.algorithms.detection.BackgroundConfig.algorithm
static
Initial value:
1 = pexConfig.ChoiceField(
2  doc="how to interpolate the background values. This maps to an enum; see afw::math::Background",
3  dtype=str, default="NATURAL_SPLINE", optional=True,
4  allowed={
5  "CONSTANT" : "Use a single constant value",
6  "LINEAR" : "Use linear interpolation",
7  "NATURAL_SPLINE" : "cubic spline with zero second derivative at endpoints",
8  "AKIMA_SPLINE": "higher-level nonlinear spline that is more robust to outliers",
9  "NONE": "No background estimation is to be attempted",
10  }
11  )

Definition at line 63 of file detection.py.

lsst.meas.algorithms.detection.BackgroundConfig.algorithm

Definition at line 108 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.approxOrderX
static
Initial value:
1 = pexConfig.Field(
2  doc="Approximation order in X for background Chebyshev (valid only with useApprox=True)",
3  dtype=int, default=6,
4  )

Definition at line 88 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.approxOrderY
static
Initial value:
1 = pexConfig.Field(
2  doc="Approximation order in Y for background Chebyshev (valid only with useApprox=True)",
3  dtype=int, default=-1,
4  )

Definition at line 95 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.binSize
static
Initial value:
1 = pexConfig.RangeField(
2  doc="how large a region of the sky should be used for each background point",
3  dtype=int, default=256, min=10
4  )

Definition at line 59 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.ignoredPixelMask
static
Initial value:
1 = pexConfig.ListField(
2  doc="Names of mask planes to ignore while estimating the background",
3  dtype=str, default = ["BAD", "EDGE", "DETECTED", "DETECTED_NEGATIVE", "NO_DATA",],
4  itemCheck = lambda x: x in afwImage.MaskU().getMaskPlaneDict().keys(),
5  )

Definition at line 74 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.isNanSafe
static
Initial value:
1 = pexConfig.Field(
2  doc="Ignore NaNs when estimating the background",
3  dtype=bool, default=False,
4  )

Definition at line 79 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.statisticsProperty
static
Initial value:
1 = pexConfig.ChoiceField(
2  doc="type of statistic to use for grid points",
3  dtype=str, default="MEANCLIP",
4  allowed={
5  "MEANCLIP": "clipped mean",
6  "MEAN": "unclipped mean",
7  "MEDIAN": "median",
8  }
9  )

Definition at line 41 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.undersampleStyle
static
Initial value:
1 = pexConfig.ChoiceField(
2  doc="behaviour if there are too few points in grid for requested interpolation style",
3  dtype=str, default="REDUCE_INTERP_ORDER",
4  allowed={
5  "THROW_EXCEPTION": "throw an exception if there are too few points",
6  "REDUCE_INTERP_ORDER": "use an interpolation style with a lower order.",
7  "INCREASE_NXNYSAMPLE": "Increase the number of samples used to make the interpolation grid.",
8  }
9  )

Definition at line 50 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.useApprox
static
Initial value:
1 = pexConfig.Field(
2  doc="Use Approximate (Chebyshev) to model background.",
3  dtype=bool, default=False,
4  )

Definition at line 84 of file detection.py.

tuple lsst.meas.algorithms.detection.BackgroundConfig.weighting
static
Initial value:
1 = pexConfig.Field(
2  doc="Use inverse variance weighting in calculation (valid only with useApprox=True)",
3  dtype=bool, default=True,
4  )

Definition at line 99 of file detection.py.


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