LSST Applications  21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
LSST Data Management Base Package
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.ip.diffim.snapPsfMatch.SnapPsfMatchConfigDF Class Reference
Inheritance diagram for lsst.ip.diffim.snapPsfMatch.SnapPsfMatchConfigDF:
lsst.ip.diffim.psfMatch.PsfMatchConfigDF lsst.ip.diffim.psfMatch.PsfMatchConfig

Public Member Functions

def setDefaults (self)
 

Public Attributes

 useRegularization
 
 usePcaForSpatialKernel
 
 subtractMeanForPca
 
 numPrincipalComponents
 
 kernelBasisSet
 
 maxConditionNumber
 
 useBicForKernelBasis
 

Static Public Attributes

 regularizationType
 
 centralRegularizationStencil
 
 forwardRegularizationOrders
 
 regularizationBorderPenalty
 
 lambdaType
 
 lambdaValue
 
 lambdaScaling
 
 lambdaStepType
 
 lambdaMin
 
 lambdaMax
 
 lambdaStep
 
 warpingConfig
 
 detectionConfig
 
 afwBackgroundConfig
 
 useAfwBackground
 
 fitForBackground
 
 kernelSize
 
 scaleByFwhm
 
 kernelSizeFwhmScaling
 
 kernelSizeMin
 
 kernelSizeMax
 
 spatialModelType
 
 spatialKernelOrder
 
 spatialBgOrder
 
 sizeCellX
 
 sizeCellY
 
 nStarPerCell
 
 maxSpatialIterations
 
 singleKernelClipping
 
 kernelSumClipping
 
 spatialKernelClipping
 
 checkConditionNumber
 
 badMaskPlanes
 
 candidateResidualMeanMax
 
 candidateResidualStdMax
 
 useCoreStats
 
 candidateCoreRadius
 
 maxKsumSigma
 
 conditionNumberType
 
 maxSpatialConditionNumber
 
 iterateSingleKernel
 
 constantVarianceWeighting
 
 calculateKernelUncertainty
 

Detailed Description

Delta-function Psf-matching config optimized for snap subtraction

Definition at line 29 of file snapPsfMatch.py.

Member Function Documentation

◆ setDefaults()

def lsst.ip.diffim.snapPsfMatch.SnapPsfMatchConfigDF.setDefaults (   self)

Reimplemented from lsst.ip.diffim.psfMatch.PsfMatchConfigDF.

Definition at line 32 of file snapPsfMatch.py.

32  def setDefaults(self):
33  PsfMatchConfigDF.setDefaults(self)
34 
35  # No regularization
36  self.useRegularization = False
37 
38  # Pca
39  self.usePcaForSpatialKernel = True
40  self.subtractMeanForPca = True
41  self.numPrincipalComponents = 5
42 
43 

Member Data Documentation

◆ afwBackgroundConfig

lsst.ip.diffim.psfMatch.PsfMatchConfig.afwBackgroundConfig
staticinherited
Initial value:
= pexConfig.ConfigField("Controlling the Afw background fitting",
SubtractBackgroundConfig)

Definition at line 131 of file psfMatch.py.

◆ badMaskPlanes

lsst.ip.diffim.psfMatch.PsfMatchConfig.badMaskPlanes
staticinherited
Initial value:
= pexConfig.ListField(
dtype=str,
doc=,
default=("NO_DATA", "EDGE", "SAT")
)

Definition at line 278 of file psfMatch.py.

◆ calculateKernelUncertainty

lsst.ip.diffim.psfMatch.PsfMatchConfig.calculateKernelUncertainty
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc=,
default=False,
)

Definition at line 355 of file psfMatch.py.

◆ candidateCoreRadius

lsst.ip.diffim.psfMatch.PsfMatchConfig.candidateCoreRadius
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc=,
default=3,
check=lambda x: x >= 1
)

Definition at line 306 of file psfMatch.py.

◆ candidateResidualMeanMax

lsst.ip.diffim.psfMatch.PsfMatchConfig.candidateResidualMeanMax
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc=,
default=0.25,
check=lambda x: x >= 0.0
)

Definition at line 284 of file psfMatch.py.

◆ candidateResidualStdMax

lsst.ip.diffim.psfMatch.PsfMatchConfig.candidateResidualStdMax
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc=,
default=1.50,
check=lambda x: x >= 0.0
)

Definition at line 292 of file psfMatch.py.

◆ centralRegularizationStencil

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.centralRegularizationStencil
staticinherited
Initial value:
= pexConfig.ChoiceField(
dtype=int,
doc="Type of stencil to approximate central derivative (for centralDifference only)",
default=9,
allowed={
5: "5-point stencil including only adjacent-in-x,y elements",
9: "9-point stencil including diagonal elements"
}
)

Definition at line 455 of file psfMatch.py.

◆ checkConditionNumber

lsst.ip.diffim.psfMatch.PsfMatchConfig.checkConditionNumber
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc=,
default=False,
)

Definition at line 269 of file psfMatch.py.

◆ conditionNumberType

lsst.ip.diffim.psfMatch.PsfMatchConfig.conditionNumberType
staticinherited
Initial value:
= pexConfig.ChoiceField(
dtype=str,
doc="Use singular values (SVD) or eigen values (EIGENVALUE) to determine condition number",
default="EIGENVALUE",
allowed={
"SVD": "Use singular values",
"EIGENVALUE": "Use eigen values (faster)",
}
)

Definition at line 328 of file psfMatch.py.

◆ constantVarianceWeighting

lsst.ip.diffim.psfMatch.PsfMatchConfig.constantVarianceWeighting
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc=,
default=True,
)

Definition at line 349 of file psfMatch.py.

◆ detectionConfig

lsst.ip.diffim.psfMatch.PsfMatchConfig.detectionConfig
staticinherited
Initial value:
= pexConfig.ConfigField("Controlling the detection of sources for kernel building",
DetectionConfig)

Definition at line 129 of file psfMatch.py.

◆ fitForBackground

lsst.ip.diffim.psfMatch.PsfMatchConfig.fitForBackground
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Include terms (including kernel cross terms) for background in ip_diffim",
default=False,
)

Definition at line 139 of file psfMatch.py.

◆ forwardRegularizationOrders

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.forwardRegularizationOrders
staticinherited
Initial value:
= pexConfig.ListField(
dtype=int,
doc="Array showing which order derivatives to penalize (for forwardDifference only)",
default=(1, 2),
itemCheck=lambda x: (x > 0) and (x < 4)
)

Definition at line 464 of file psfMatch.py.

◆ iterateSingleKernel

lsst.ip.diffim.psfMatch.PsfMatchConfig.iterateSingleKernel
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc=,
default=False,
)

Definition at line 343 of file psfMatch.py.

◆ kernelBasisSet

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.kernelBasisSet
inherited

Definition at line 435 of file psfMatch.py.

◆ kernelSize

lsst.ip.diffim.psfMatch.PsfMatchConfig.kernelSize
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc=,
default=21,
)

Definition at line 159 of file psfMatch.py.

◆ kernelSizeFwhmScaling

lsst.ip.diffim.psfMatch.PsfMatchConfig.kernelSizeFwhmScaling
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc="Multiplier of the largest AL Gaussian basis sigma to get the kernel bbox (pixel) size.",
default=6.0,
check=lambda x: x >= 1.0
)

Definition at line 170 of file psfMatch.py.

◆ kernelSizeMax

lsst.ip.diffim.psfMatch.PsfMatchConfig.kernelSizeMax
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc="Maximum kernel bbox (pixel) size.",
default=35,
)

Definition at line 181 of file psfMatch.py.

◆ kernelSizeMin

lsst.ip.diffim.psfMatch.PsfMatchConfig.kernelSizeMin
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc="Minimum kernel bbox (pixel) size.",
default=21,
)

Definition at line 176 of file psfMatch.py.

◆ kernelSumClipping

lsst.ip.diffim.psfMatch.PsfMatchConfig.kernelSumClipping
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Do sigma clipping on the ensemble of kernel sums",
default=True,
)

Definition at line 259 of file psfMatch.py.

◆ lambdaMax

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.lambdaMax
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc=,
default=2.0,
)

Definition at line 513 of file psfMatch.py.

◆ lambdaMin

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.lambdaMin
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc=,
default=-1.0,
)

Definition at line 507 of file psfMatch.py.

◆ lambdaScaling

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.lambdaScaling
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc="Fraction of the default lambda strength (N.R. 18.5.8) to use. 1e-4 or 1e-5",
default=1e-4,
)

Definition at line 492 of file psfMatch.py.

◆ lambdaStep

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.lambdaStep
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc=,
default=0.1,
)

Definition at line 519 of file psfMatch.py.

◆ lambdaStepType

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.lambdaStepType
staticinherited
Initial value:
= pexConfig.ChoiceField(
dtype=str,
doc=,
default="log",
allowed={
"log": "Step in log intervals; e.g. lambdaMin, lambdaMax, lambdaStep = -1.0, 2.0, 0.1",
"linear": "Step in linear intervals; e.g. lambdaMin, lambdaMax, lambdaStep = 0.1, 100, 0.1",
}
)

Definition at line 497 of file psfMatch.py.

◆ lambdaType

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.lambdaType
staticinherited
Initial value:
= pexConfig.ChoiceField(
dtype=str,
doc="How to choose the value of the regularization strength",
default="absolute",
allowed={
"absolute": "Use lambdaValue as the value of regularization strength",
"relative": "Use lambdaValue as fraction of the default regularization strength (N.R. 18.5.8)",
"minimizeBiasedRisk": "Minimize biased risk estimate",
"minimizeUnbiasedRisk": "Minimize unbiased risk estimate",
}
)

Definition at line 476 of file psfMatch.py.

◆ lambdaValue

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.lambdaValue
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc="Value used for absolute determinations of regularization strength",
default=0.2,
)

Definition at line 487 of file psfMatch.py.

◆ maxConditionNumber

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.maxConditionNumber
inherited

Definition at line 436 of file psfMatch.py.

◆ maxKsumSigma

lsst.ip.diffim.psfMatch.PsfMatchConfig.maxKsumSigma
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc=,
default=3.0,
check=lambda x: x >= 0.0
)

Definition at line 315 of file psfMatch.py.

◆ maxSpatialConditionNumber

lsst.ip.diffim.psfMatch.PsfMatchConfig.maxSpatialConditionNumber
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc="Maximum condition number for a well conditioned spatial matrix",
default=1.0e10,
check=lambda x: x >= 0.0
)

Definition at line 337 of file psfMatch.py.

◆ maxSpatialIterations

lsst.ip.diffim.psfMatch.PsfMatchConfig.maxSpatialIterations
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc="Maximum number of iterations for rejecting bad KernelCandidates in spatial fitting",
default=3,
check=lambda x: x >= 1 and x <= 5
)

Definition at line 225 of file psfMatch.py.

◆ nStarPerCell

lsst.ip.diffim.psfMatch.PsfMatchConfig.nStarPerCell
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc="Number of KernelCandidates in each SpatialCell to use in the spatial fitting",
default=3,
check=lambda x: x >= 1
)

Definition at line 219 of file psfMatch.py.

◆ numPrincipalComponents

lsst.ip.diffim.snapPsfMatch.SnapPsfMatchConfigDF.numPrincipalComponents

Definition at line 41 of file snapPsfMatch.py.

◆ regularizationBorderPenalty

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.regularizationBorderPenalty
staticinherited
Initial value:
= pexConfig.Field(
dtype=float,
doc="Value of the penalty for kernel border pixels",
default=3.0,
check=lambda x: x >= 0.0
)

Definition at line 470 of file psfMatch.py.

◆ regularizationType

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.regularizationType
staticinherited
Initial value:
= pexConfig.ChoiceField(
dtype=str,
doc="Type of regularization.",
default="centralDifference",
allowed={
"centralDifference": "Penalize second derivative using 2-D stencil of central finite difference",
"forwardDifference": "Penalize first, second, third derivatives using forward finite differeces"
}
)

Definition at line 446 of file psfMatch.py.

◆ scaleByFwhm

lsst.ip.diffim.psfMatch.PsfMatchConfig.scaleByFwhm
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Scale kernelSize, alardGaussians by input Fwhm",
default=True,
)

Definition at line 165 of file psfMatch.py.

◆ singleKernelClipping

lsst.ip.diffim.psfMatch.PsfMatchConfig.singleKernelClipping
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Do sigma clipping on each raw kernel candidate",
default=True,
)

Definition at line 254 of file psfMatch.py.

◆ sizeCellX

lsst.ip.diffim.psfMatch.PsfMatchConfig.sizeCellX
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc="Size (rows) in pixels of each SpatialCell for spatial modeling",
default=128,
check=lambda x: x >= 32
)

Definition at line 207 of file psfMatch.py.

◆ sizeCellY

lsst.ip.diffim.psfMatch.PsfMatchConfig.sizeCellY
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc="Size (columns) in pixels of each SpatialCell for spatial modeling",
default=128,
check=lambda x: x >= 32
)

Definition at line 213 of file psfMatch.py.

◆ spatialBgOrder

lsst.ip.diffim.psfMatch.PsfMatchConfig.spatialBgOrder
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc="Spatial order of differential background variation",
default=1,
check=lambda x: x >= 0
)

Definition at line 201 of file psfMatch.py.

◆ spatialKernelClipping

lsst.ip.diffim.psfMatch.PsfMatchConfig.spatialKernelClipping
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Do sigma clipping after building the spatial model",
default=True,
)

Definition at line 264 of file psfMatch.py.

◆ spatialKernelOrder

lsst.ip.diffim.psfMatch.PsfMatchConfig.spatialKernelOrder
staticinherited
Initial value:
= pexConfig.Field(
dtype=int,
doc="Spatial order of convolution kernel variation",
default=2,
check=lambda x: x >= 0
)

Definition at line 195 of file psfMatch.py.

◆ spatialModelType

lsst.ip.diffim.psfMatch.PsfMatchConfig.spatialModelType
staticinherited
Initial value:
= pexConfig.ChoiceField(
dtype=str,
doc="Type of spatial functions for kernel and background",
default="chebyshev1",
allowed={
"chebyshev1": "Chebyshev polynomial of the first kind",
"polynomial": "Standard x,y polynomial",
}
)

Definition at line 186 of file psfMatch.py.

◆ subtractMeanForPca

lsst.ip.diffim.snapPsfMatch.SnapPsfMatchConfigDF.subtractMeanForPca

Definition at line 40 of file snapPsfMatch.py.

◆ useAfwBackground

lsst.ip.diffim.psfMatch.PsfMatchConfig.useAfwBackground
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Use afw background subtraction instead of ip_diffim",
default=False,
)

Definition at line 134 of file psfMatch.py.

◆ useBicForKernelBasis

lsst.ip.diffim.psfMatch.PsfMatchConfigDF.useBicForKernelBasis
inherited

Definition at line 439 of file psfMatch.py.

◆ useCoreStats

lsst.ip.diffim.psfMatch.PsfMatchConfig.useCoreStats
staticinherited
Initial value:
= pexConfig.Field(
dtype=bool,
doc=,
default=False,
)

Definition at line 300 of file psfMatch.py.

◆ usePcaForSpatialKernel

lsst.ip.diffim.snapPsfMatch.SnapPsfMatchConfigDF.usePcaForSpatialKernel

Definition at line 39 of file snapPsfMatch.py.

◆ useRegularization

lsst.ip.diffim.snapPsfMatch.SnapPsfMatchConfigDF.useRegularization

Definition at line 36 of file snapPsfMatch.py.

◆ warpingConfig

lsst.ip.diffim.psfMatch.PsfMatchConfig.warpingConfig
staticinherited
Initial value:
= pexConfig.ConfigField("Config for warping exposures to a common alignment",

Definition at line 127 of file psfMatch.py.


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