GetTemplateConfig#
- class lsst.ip.diffim.GetTemplateConfig(*args, **kw)#
Bases:
PipelineTaskConfigAttributes Summary
Configuration for CoaddPsf (
CoaddPsfConfig, default<class 'lsst.meas.algorithms.CoaddPsfConfig'>)Warping kernel that was used to build the input coadds.
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
Correct the template variance for the correlation that warping introduced between neighboring pixels? This covers both warps: the one that built the coadds, named by coaddWarpKernel, and the one this task performs, named by warp.warpingKernelName.
Scale the variance of the template image to match its per-pixel scatter? Warping correlates the noise, so when combined with doCorrectVarianceWarpCorrelation this overcounts the correction.
Fractional buffer margin to be left out of all sides of the image during construction of grid to compute average PSF FWHM in an exposure (
float, default0.05)Grid size to compute the average PSF FWHM in an exposure (pixels) (
int, default10)Minimum fraction of unmasked pixels needed to set the HIGH_VARIANCE mask plane.
Set the HIGH_VARIANCE mask plane for regions with variance greater than the median by this factor.
Which image type to use for the output template.
Raise if the template has pixels set in a mask plane that
lsst.imagesdoes not map? If False, log a warning and drop that plane from the output instead.If True, include the coadd dataset existence in the initial butler query during QuantumGraph generation.
Flag to enable/disable saving of log output for a task, enabled by default.
Subtask to rescale the variance of the template to the statistically expected level.
Number of pixels to grow the requested template image to account for warping (
int, default20)Task to estimate the background variance.
warper configuration (
WarperConfig, default<class 'lsst.afw.math._warper.WarperConfig'>)Methods Summary
Subclass hook for computing defaults.
Attributes Documentation
- coaddPsf#
Configuration for CoaddPsf (
CoaddPsfConfig, default<class 'lsst.meas.algorithms.CoaddPsfConfig'>)
- coaddWarpKernel#
Warping kernel that was used to build the input coadds. This cannot be recovered from the coadds themselves, and is used only if doCorrectVarianceWarpCorrelation is True. (
str, default'lanczos3')Allowed values:
'bilinear'bilinear interpolation
'lanczos3'Lanczos kernel of order 3
'lanczos4'Lanczos kernel of order 4
'lanczos5'Lanczos kernel of order 5
'None'Field is optional
- connections: pexConfig.ConfigField#
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
- doCorrectVarianceWarpCorrelation#
Correct the template variance for the correlation that warping introduced between neighboring pixels? This covers both warps: the one that built the coadds, named by coaddWarpKernel, and the one this task performs, named by warp.warpingKernelName. It is a single scalar factor, fixed entirely by those two kernels and independent of the pixel scales involved. (
bool, defaultTrue)
- doScaleVariance#
Scale the variance of the template image to match its per-pixel scatter? Warping correlates the noise, so when combined with doCorrectVarianceWarpCorrelation this overcounts the correction. (
bool, defaultFalse)
- fwhmExposureBuffer#
Fractional buffer margin to be left out of all sides of the image during construction of grid to compute average PSF FWHM in an exposure (
float, default0.05)
- fwhmExposureGrid#
Grid size to compute the average PSF FWHM in an exposure (pixels) (
int, default10)
- highVarianceMaskFraction#
Minimum fraction of unmasked pixels needed to set the HIGH_VARIANCE mask plane. (
float, default0.1)
- highVarianceThreshold#
Set the HIGH_VARIANCE mask plane for regions with variance greater than the median by this factor. (
float, default4)Valid Range = [1,inf)
- output_image_type#
Which image type to use for the output template. (
str, default'legacy')Allowed values:
'legacy'Write as a lsst.afw.image.ExposureF.
'future'Write as a lsst.images.DifferenceImage.
- raiseOnUndefinedMaskMap#
Raise if the template has pixels set in a mask plane that
lsst.imagesdoes not map? If False, log a warning and drop that plane from the output instead. Only used with output_image_type=’future’. (bool, defaultFalse)
- requireCoaddAtGraphBuild#
If True, include the coadd dataset existence in the initial butler query during QuantumGraph generation. (
bool, defaultFalse)
- saveLogOutput#
Flag to enable/disable saving of log output for a task, enabled by default. (
bool, defaultTrue)
- scaleVariance#
Subtask to rescale the variance of the template to the statistically expected level. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.scaleVariance.ScaleVarianceConfig'>)
- templateBorderSize#
Number of pixels to grow the requested template image to account for warping (
int, default20)
- varianceBackground#
Task to estimate the background variance. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.subtractBackground.SubtractBackgroundConfig'>)
- warp#
warper configuration (
WarperConfig, default<class 'lsst.afw.math._warper.WarperConfig'>)
Methods Documentation