SubtractBackgroundConfig#
- class lsst.meas.algorithms.SubtractBackgroundConfig(*args, **kw)#
Bases:
ConfigConfig for SubtractBackgroundTask
Many of these fields match fields in
lsst.afw.math.BackgroundControl, the control class forlsst.afw.math.makeBackgroundAttributes Summary
how to interpolate the background values.
Approximation order in X for background Chebyshev (valid only with useApprox=True) (
int, default6)Approximation order in Y for background Chebyshev (valid only with useApprox=True) (
int, default-1)how large a region of the sky should be used for each background point (
int, default128)Sky region size to be used for each background point in X direction.
Sky region size to be used for each background point in Y direction.
Convert from a photometrically flat image to one suitable to background subtraction? If True, then a backgroundToPhotometricRatio must be supplied to the task run method.
Remove outliers from the binned image.
Names of mask planes to ignore while estimating the background (
List, default['BAD', 'EDGE', 'DETECTED', 'DETECTED_NEGATIVE', 'NO_DATA'])Ignore NaNs when estimating the background (
bool, defaultFalse)type of statistic to use for grid points (
str, default'MEANCLIP')Size of the median filter to use to remove outliers from the binned image.
behaviour if there are too few points in grid for requested interpolation style (
str, default'REDUCE_INTERP_ORDER')Use Approximate (Chebyshev) to model background.
Use inverse variance weighting in calculation (valid only with useApprox=True) (
bool, defaultTrue)Attributes Documentation
- algorithm#
how to interpolate the background values. This maps to an enum; see afw::math::Background (
str, default'AKIMA_SPLINE')Allowed values:
'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
'None'Field is optional
- approxOrderX#
Approximation order in X for background Chebyshev (valid only with useApprox=True) (
int, default6)
- approxOrderY#
Approximation order in Y for background Chebyshev (valid only with useApprox=True) (
int, default-1)
- binSize#
how large a region of the sky should be used for each background point (
int, default128)Valid Range = [1,inf)
- binSizeX#
Sky region size to be used for each background point in X direction. If 0, the binSize config is used. (
int, default0)Valid Range = [0,inf)
- binSizeY#
Sky region size to be used for each background point in Y direction. If 0, the binSize config is used. (
int, default0)Valid Range = [0,inf)
- doApplyFlatBackgroundRatio#
Convert from a photometrically flat image to one suitable to background subtraction? If True, then a backgroundToPhotometricRatio must be supplied to the task run method. (
bool, defaultFalse)
- doFilterSuperPixels#
Remove outliers from the binned image. (
bool, defaultFalse)
- ignoredPixelMask#
Names of mask planes to ignore while estimating the background (
List, default['BAD', 'EDGE', 'DETECTED', 'DETECTED_NEGATIVE', 'NO_DATA'])
- isNanSafe#
Ignore NaNs when estimating the background (
bool, defaultFalse)
- statisticsProperty#
type of statistic to use for grid points (
str, default'MEANCLIP')Allowed values:
'MEANCLIP'clipped mean
'MEAN'unclipped mean
'MEDIAN'median
'None'Field is optional
- superPixelFilterSize#
Size of the median filter to use to remove outliers from the binned image. (
int, default3)
- undersampleStyle#
behaviour if there are too few points in grid for requested interpolation style (
str, default'REDUCE_INTERP_ORDER')Allowed values:
'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.
'None'Field is optional
- useApprox#
Use Approximate (Chebyshev) to model background. (
bool, defaultTrue)
- weighting#
Use inverse variance weighting in calculation (valid only with useApprox=True) (
bool, defaultTrue)