LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+f5613e8b4f,g1470d8bcf6+190ad2ba91,g14a832a312+311607e4ab,g2079a07aa2+86d27d4dc4,g2305ad1205+a8e3196225,g295015adf3+b67ee847e5,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+a761f810f3,g487adcacf7+17c8fdbcbd,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+65b5bd823e,g5a732f18d5+53520f316c,g64a986408d+f5613e8b4f,g6c1bc301e9+51106c2951,g858d7b2824+f5613e8b4f,g8a8a8dda67+585e252eca,g99cad8db69+6729933424,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+e9bba80f27,gc120e1dc64+eee469a5e5,gc28159a63d+0e5473021a,gcf0d15dbbd+a761f810f3,gdaeeff99f8+f9a426f77a,ge6526c86ff+d4c1d4bfef,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf1cff7945b+f5613e8b4f,w.2024.16
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
run (self, template, science, kernelSources, preconvolved=False) | |
selectKernelSources (self, template, science, candidateList=None, preconvolved=False) | |
getSelectSources (self, exposure, sigma=None, doSmooth=True, idFactory=None) | |
makeCandidateList (self, convolved, reference, kernelSize, candidateList, preconvolved=False) | |
makeKernelBasisList (self, targetFwhmPix=None, referenceFwhmPix=None, basisDegGauss=None, basisSigmaGauss=None, metadata=None) | |
Public Attributes | |
kConfig | |
background | |
selectSchema | |
selectAlgMetadata | |
Static Public Attributes | |
ConfigClass = MakeKernelConfig | |
Protected Member Functions | |
_buildCellSet (self, convolved, reference, candidateList) | |
_adaptCellSize (self, candidateList) | |
Static Protected Attributes | |
str | _DefaultName = "makeALKernel" |
Construct a kernel for PSF matching two exposures.
Definition at line 89 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Create the psf-matching Task Parameters ---------- *args Arguments to be passed to ``lsst.pipe.base.task.Task.__init__`` **kwargs Keyword arguments to be passed to ``lsst.pipe.base.task.Task.__init__`` Notes ----- The initialization sets the Psf-matching kernel configuration using the value of self.config.kernel.active. If the kernel is requested with regularization to moderate the bias/variance tradeoff, currently only used when a delta function kernel basis is provided, it creates a regularization matrix stored as member variable self.hMat.
Reimplemented from lsst.ip.diffim.psfMatch.PsfMatchTask.
Definition at line 96 of file makeKernel.py.
|
protected |
NOT IMPLEMENTED YET. Parameters ---------- candidateList : `list` A list of footprints/maskedImages for kernel candidates; Returns ------- sizeCellX, sizeCellY : `int` New dimensions to use for the kernel.
Definition at line 431 of file makeKernel.py.
|
protected |
Build a SpatialCellSet for use with the solve method. Parameters ---------- convolved : `lsst.afw.image.MaskedImage` MaskedImage to PSF-matched to reference. reference : `lsst.afw.image.MaskedImage` Reference MaskedImage. candidateList : `lsst.afw.table.SourceCatalog` Kernel candidate sources with footprints. Returns ------- kernelCellSet : `lsst.afw.math.SpatialCellSet` A SpatialCellSet for use with self._solve.
Reimplemented from lsst.ip.diffim.psfMatch.PsfMatchTask.
Definition at line 386 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.getSelectSources | ( | self, | |
exposure, | |||
sigma = None, | |||
doSmooth = True, | |||
idFactory = None ) |
Get sources to use for Psf-matching. This method runs detection and measurement on an exposure. The returned set of sources will be used as candidates for Psf-matching. Parameters ---------- exposure : `lsst.afw.image.Exposure` Exposure on which to run detection/measurement sigma : `float`, optional PSF sigma, in pixels, used for smoothing the image for detection. If `None`, the PSF width will be used. doSmooth : `bool` Whether or not to smooth the Exposure with Psf before detection idFactory : `lsst.afw.table.IdFactory` Factory for the generation of Source ids Returns ------- selectSources : source catalog containing candidates for the Psf-matching
Definition at line 214 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.makeCandidateList | ( | self, | |
convolved, | |||
reference, | |||
kernelSize, | |||
candidateList, | |||
preconvolved = False ) |
Make a list of acceptable KernelCandidates. Generate a list of candidate sources for Psf-matching, remove sources with bad pixel masks set or that extend off the image. Parameters ---------- convolved : `lsst.afw.image.Exposure` Exposure that will be convolved. This is typically the template image, and may have a large bbox than the reference exposure. reference : `lsst.afw.image.Exposure` Exposure that will be matched-to. This is typically the science image. kernelSize : `float` Dimensions of the Psf-matching Kernel, used to set detection footprints. candidateList : `lsst.afw.table.SourceCatalog` List of Sources to examine for kernel candidacy. preconvolved : `bool`, optional Was the science exposure already convolved with its PSF? Returns ------- candidates : `lsst.afw.table.SourceCatalog` Candidates with footprints extended to a ``kernelSize`` box. Raises ------ RuntimeError If ``candidateList`` is empty after sub-selection.
Definition at line 275 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.makeKernelBasisList | ( | self, | |
targetFwhmPix = None, | |||
referenceFwhmPix = None, | |||
basisDegGauss = None, | |||
basisSigmaGauss = None, | |||
metadata = None ) |
Wrapper to set log messages for `lsst.ip.diffim.makeKernelBasisList`. Parameters ---------- targetFwhmPix : `float`, optional Passed on to `lsst.ip.diffim.generateAlardLuptonBasisList`. Not used for delta function basis sets. referenceFwhmPix : `float`, optional Passed on to `lsst.ip.diffim.generateAlardLuptonBasisList`. Not used for delta function basis sets. basisDegGauss : `list` of `int`, optional Passed on to `lsst.ip.diffim.generateAlardLuptonBasisList`. Not used for delta function basis sets. basisSigmaGauss : `list` of `int`, optional Passed on to `lsst.ip.diffim.generateAlardLuptonBasisList`. Not used for delta function basis sets. metadata : `lsst.daf.base.PropertySet`, optional Passed on to `lsst.ip.diffim.generateAlardLuptonBasisList`. Not used for delta function basis sets. Returns ------- basisList: `list` of `lsst.afw.math.kernel.FixedKernel` List of basis kernels.
Definition at line 343 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.run | ( | self, | |
template, | |||
science, | |||
kernelSources, | |||
preconvolved = False ) |
Solve for the kernel and background model that best match two Exposures evaluated at the given source locations. Parameters ---------- template : `lsst.afw.image.Exposure` Exposure that will be convolved. science : `lsst.afw.image.Exposure` The exposure that will be matched. kernelSources : `lsst.afw.table.SourceCatalog` Kernel candidate sources with appropriately sized footprints. Typically the output of `MakeKernelTask.selectKernelSources`. preconvolved : `bool`, optional Was the science image convolved with its own PSF? Returns ------- results : `lsst.pipe.base.Struct` ``psfMatchingKernel`` : `lsst.afw.math.LinearCombinationKernel` Spatially varying Psf-matching kernel. ``backgroundModel`` : `lsst.afw.math.Function2D` Spatially varying background-matching function.
Definition at line 108 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.selectKernelSources | ( | self, | |
template, | |||
science, | |||
candidateList = None, | |||
preconvolved = False ) |
Select sources from a list of candidates, and extract footprints. Parameters ---------- template : `lsst.afw.image.Exposure` Exposure that will be convolved. science : `lsst.afw.image.Exposure` The exposure that will be matched. candidateList : `lsst.afw.table.SourceCatalog` Sources to check as possible kernel candidates. preconvolved : `bool`, optional Was the science image convolved with its own PSF? Returns ------- kernelSources : `lsst.afw.table.SourceCatalog` Kernel candidates with appropriate sized footprints.
Definition at line 166 of file makeKernel.py.
|
staticprotected |
Definition at line 94 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.background |
Definition at line 101 of file makeKernel.py.
|
static |
Definition at line 93 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.kConfig |
Definition at line 98 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.selectAlgMetadata |
Definition at line 104 of file makeKernel.py.
lsst.ip.diffim.makeKernel.MakeKernelTask.selectSchema |
Definition at line 103 of file makeKernel.py.