LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
|
Classes | |
class | AlardLuptonPreconvolveSubtractConfig |
class | AlardLuptonPreconvolveSubtractConnections |
class | AlardLuptonPreconvolveSubtractTask |
class | AlardLuptonSubtractBaseConfig |
class | AlardLuptonSubtractConfig |
class | AlardLuptonSubtractConnections |
class | AlardLuptonSubtractTask |
class | SubtractImageOutputConnections |
class | SubtractInputConnections |
class | SubtractScoreOutputConnections |
Functions | |
checkTemplateIsSufficient (templateExposure, logger, requiredTemplateFraction=0., exceptionMessage="") | |
_subtractImages (science, template, backgroundModel=None) | |
_shapeTest (exp1, exp2, fwhmExposureBuffer, fwhmExposureGrid) | |
_interpolateImage (maskedImage, badMaskPlanes, fallbackValue=None) | |
Variables | |
tuple | _dimensions = ("instrument", "visit", "detector") |
dict | _defaultTemplates = {"coaddName": "deep", "fakesType": ""} |
|
protected |
Replace masked image pixels with interpolated values. Parameters ---------- maskedImage : `lsst.afw.image.MaskedImage` Image on which to perform interpolation. badMaskPlanes : `list` of `str` List of mask planes to interpolate over. fallbackValue : `float`, optional Value to set when interpolation fails. Returns ------- result: `float` The number of masked pixels that were replaced.
Definition at line 1261 of file subtractImages.py.
|
protected |
Determine that the PSF of ``exp1`` is not wider than that of ``exp2``. Parameters ---------- exp1 : `~lsst.afw.image.Exposure` Exposure with the reference point spread function (PSF) to evaluate. exp2 : `~lsst.afw.image.Exposure` Exposure with a candidate point spread function (PSF) to evaluate. fwhmExposureBuffer : `float` Fractional buffer margin to be left out of all sides of the image during the construction of the grid to compute mean PSF FWHM in an exposure, if the PSF is not available at its average position. fwhmExposureGrid : `int` Grid size to compute the mean FWHM in an exposure, if the PSF is not available at its average position. Returns ------- result : `bool` True if ``exp1`` has a PSF that is not wider than that of ``exp2`` in either dimension.
Definition at line 1219 of file subtractImages.py.
|
protected |
Subtract template from science, propagating relevant metadata. Parameters ---------- science : `lsst.afw.Exposure` The input science image. template : `lsst.afw.Exposure` The template to subtract from the science image. backgroundModel : `lsst.afw.MaskedImage`, optional Differential background model Returns ------- difference : `lsst.afw.Exposure` The subtracted image.
Definition at line 1195 of file subtractImages.py.
lsst.ip.diffim.subtractImages.checkTemplateIsSufficient | ( | templateExposure, | |
logger, | |||
requiredTemplateFraction = 0., | |||
exceptionMessage = "" ) |
Raise NoWorkFound if template coverage < requiredTemplateFraction Parameters ---------- templateExposure : `lsst.afw.image.ExposureF` The template exposure to check logger : `logging.Logger` Logger for printing output. requiredTemplateFraction : `float`, optional Fraction of pixels of the science image required to have coverage in the template. exceptionMessage : `str`, optional Message to include in the exception raised if the template coverage is insufficient. Returns ------- templateCoverageFraction: `float` Fraction of pixels in the template with data. Raises ------ lsst.pipe.base.NoWorkFound Raised if fraction of good pixels, defined as not having NO_DATA set, is less than the requiredTemplateFraction
Definition at line 1151 of file subtractImages.py.
|
protected |
Definition at line 42 of file subtractImages.py.
|
protected |
Definition at line 41 of file subtractImages.py.