LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, warpingKernelName, interpLength=_DefaultInterpLength, cacheSize=_DefaultCacheSize, maskWarpingKernelName="", growFullMask=afwImage.Mask.getPlaneBitMask("EDGE")) | |
fromConfig (cls, config) | |
getWarpingKernel (self) | |
getMaskWarpingKernel (self) | |
warpExposure (self, destWcs, srcExposure, border=0, maxBBox=None, destBBox=None) | |
warpImage (self, destWcs, srcImage, srcWcs, border=0, maxBBox=None, destBBox=None) | |
Static Public Attributes | |
ConfigClass = WarperConfig | |
Protected Member Functions | |
_computeDestBBox (self, destWcs, srcImage, srcWcs, border, maxBBox, destBBox) | |
Protected Attributes | |
_warpingControl | |
Warp images. Parameters ---------- warpingKernelName : `str` see `WarperConfig.warpingKernelName` interpLength : `int`, optional ``interpLength`` argument to `lsst.afw.math.warpExposure` cacheSize : `int`, optional size of computeCache maskWarpingKernelName : `str`, optional name of mask warping kernel (if ``""`` then use ``warpingKernelName``); see `WarperConfig.maskWarpingKernelName` growFullMask : `int`, optional mask bits to grow to full width of image/variance kernel
Definition at line 106 of file _warper.py.
lsst.afw.math._warper.Warper.__init__ | ( | self, | |
warpingKernelName, | |||
interpLength = _DefaultInterpLength, | |||
cacheSize = _DefaultCacheSize, | |||
maskWarpingKernelName = "", | |||
growFullMask = afwImage.Mask.getPlaneBitMask("EDGE") ) |
Definition at line 125 of file _warper.py.
|
protected |
Process destBBox argument for warpImage and warpExposure. Parameters ---------- destWcs : `lsst.afw.geom.SkyWcs` WCS of warped image srcImage image or masked image to warp srcWcs : `lsst.afw.geom.SkyWcs` WCS of image border : `int`, optional grow bbox of warped image by this amount in all directions (in pixels); if negative then the bbox is shrunk; border is applied before ``maxBBox``; ignored if ``destBBox`` is not `None` maxBBox : `lsst.geom.Box2I`, optional maximum allowed parent bbox of warped image; if `None` then the warped image will be just big enough to contain all warped pixels; if provided then the warped image may be smaller, and so missing some warped pixels; ignored if ``destBBox`` is not `None` destBBox : `lsst.geom.Box2I`, optional exact parent bbox of warped image; if `None` then ``border`` and ``maxBBox`` are used to determine the bbox, otherwise ``border`` and ``maxBBox`` are ignored
Definition at line 251 of file _warper.py.
lsst.afw.math._warper.Warper.fromConfig | ( | cls, | |
config ) |
Create a Warper from a config. Parameters ---------- config : `WarperConfig` The config to initialize the Warper with.
Definition at line 135 of file _warper.py.
lsst.afw.math._warper.Warper.getMaskWarpingKernel | ( | self | ) |
Get the mask warping kernel.
Definition at line 156 of file _warper.py.
lsst.afw.math._warper.Warper.getWarpingKernel | ( | self | ) |
Get the warping kernel.
Definition at line 151 of file _warper.py.
lsst.afw.math._warper.Warper.warpExposure | ( | self, | |
destWcs, | |||
srcExposure, | |||
border = 0, | |||
maxBBox = None, | |||
destBBox = None ) |
Warp an exposure. Parameters ----------- destWcs : `lsst.afw.geom.SkyWcs` WCS of warped exposure srcExposure exposure to warp border : `int`, optional grow bbox of warped exposure by this amount in all directions (in pixels); if negative then the bbox is shrunk; border is applied before ``maxBBox``; ignored if ``destBBox`` is not `None` maxBBox : `lsst.geom.Box2I`, optional maximum allowed parent bbox of warped exposure; if `None` then the warped exposure will be just big enough to contain all warped pixels; if provided then the warped exposure may be smaller, and so missing some warped pixels; ignored if ``destBBox`` is not `None` destBBox : `lsst.geom.Box2I`, optional exact parent bbox of warped exposure; if `None` then ``border`` and ``maxBBox`` are used to determine the bbox, otherwise ``border`` and ``maxBBox`` are ignored Returns ------- destExposure : same type as ``srcExposure`` warped exposure Notes ----- calls `lsst.afw.math.warpExposure` insted of `~Warper.warpImage` because the former copies attributes such as ``Calib``, and that should be done in one place The PSF is not warped. To warp the PSF, use `lsst.meas.algorithms.WarpedPsf`
Definition at line 161 of file _warper.py.
lsst.afw.math._warper.Warper.warpImage | ( | self, | |
destWcs, | |||
srcImage, | |||
srcWcs, | |||
border = 0, | |||
maxBBox = None, | |||
destBBox = None ) |
Warp an image or masked image. Parameters ---------- destWcs : `lsst.afw.geom.SkyWcs` WCS of warped image srcImage image or masked image to warp srcWcs : `lsst.afw.geom.SkyWcs` WCS of image border : `int`, optional grow bbox of warped image by this amount in all directions (in pixels); if negative then the bbox is shrunk; border is applied before ``maxBBox``; ignored if ``destBBox`` is not `None` maxBBox : `lsst.geom.Box2I`, optional maximum allowed parent bbox of warped image; if `None` then the warped image will be just big enough to contain all warped pixels; if provided then the warped image may be smaller, and so missing some warped pixels; ignored if ``destBBox`` is not `None` destBBox : `lsst.geom.Box2I`, optional exact parent bbox of warped image; if `None` then ``border`` and ``maxBBox`` are used to determine the bbox, otherwise ``border`` and ``maxBBox`` are ignored Returns ------- destImage : same type as ``srcExposure`` warped image or masked image
Definition at line 208 of file _warper.py.
|
protected |
Definition at line 131 of file _warper.py.
|
static |
Definition at line 123 of file _warper.py.