|
LSSTApplications
8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
|
Public Member Functions | |
| def | __init__ |
| def | fromConfig |
| def | getWarpingKernel |
| def | getMaskWarpingKernel |
| def | warpExposure |
| def | warpImage |
Static Public Attributes | |
| ConfigClass = WarperConfig | |
Private Member Functions | |
| def | _computeDestBBox |
Private Attributes | |
| _warpingControl | |
| def lsst.afw.math.warper.Warper.__init__ | ( | self, | |
| warpingKernelName, | |||
interpLength = _DefaultInterpLength, |
|||
cacheSize = _DefaultCacheSize, |
|||
maskWarpingKernelName = "", |
|||
devicePreference = afwGpu.DEFAULT_DEVICE_PREFERENCE, |
|||
growFullMask = afwImage.MaskU.getPlaneBitMask("EDGE") |
|||
| ) |
Create a Warper
Inputs:
- warpingKernelName: argument to lsst.afw.math.makeWarpingKernel
- interpLength: interpLength argument to lsst.afw.warpExposure
- cacheSize: size of computeCache
- maskWarpingKernelName: name of mask warping kernel (if "" then use warpingKernelName);
an argument to lsst.afw.math.makeWarpingKernel
Definition at line 109 of file warper.py.
|
private |
Process destBBox argument for warpImage and warpExposure
@param destWcs: WCS of warped image
@param srcImage: image or masked image to warp
@param srcWcs: WCS of image
@param border: grow bbox of warped image by this amount in all directions (int pixels);
if negative then the bbox is shrunk;
border is applied before maxBBox;
ignored if destBBox is not None
@param maxBBox: maximum allowed parent bbox of warped image (an afwGeom.Box2I or None);
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
@param destBBox: exact parent bbox of warped image (an afwGeom.Box2I or None);
if None then border and maxBBox are used to determine the bbox,
otherwise border and maxBBox are ignored
Definition at line 211 of file warper.py.
| def lsst.afw.math.warper.Warper.fromConfig | ( | cls, | |
| config | |||
| ) |
| def lsst.afw.math.warper.Warper.getMaskWarpingKernel | ( | self | ) |
| def lsst.afw.math.warper.Warper.getWarpingKernel | ( | self | ) |
| def lsst.afw.math.warper.Warper.warpExposure | ( | self, | |
| destWcs, | |||
| srcExposure, | |||
border = 0, |
|||
maxBBox = None, |
|||
destBBox = None |
|||
| ) |
Warp an exposure
@param destWcs: WCS of warped exposure
@param srcExposure: exposure to warp
@param border: grow bbox of warped exposure by this amount in all directions (int pixels);
if negative then the bbox is shrunk;
border is applied before maxBBox;
ignored if destBBox is not None
@param maxBBox: maximum allowed parent bbox of warped exposure (an afwGeom.Box2I or None);
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
@param destBBox: exact parent bbox of warped exposure (an afwGeom.Box2I or None);
if None then border and maxBBox are used to determine the bbox,
otherwise border and maxBBox are ignored
@return destExposure: warped exposure (of same type as srcExposure)
@note: calls mathLib.warpExposure insted of self.warpImage because the former
copies attributes such as Calib, and that should be done in one place
Definition at line 145 of file warper.py.
| def lsst.afw.math.warper.Warper.warpImage | ( | self, | |
| destWcs, | |||
| srcImage, | |||
| srcWcs, | |||
border = 0, |
|||
maxBBox = None, |
|||
destBBox = None |
|||
| ) |
Warp an image or masked image
@param destWcs: WCS of warped image
@param srcImage: image or masked image to warp
@param srcWcs: WCS of image
@param border: grow bbox of warped image by this amount in all directions (int pixels);
if negative then the bbox is shrunk;
border is applied before maxBBox;
ignored if destBBox is not None
@param maxBBox: maximum allowed parent bbox of warped image (an afwGeom.Box2I or None);
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
@param destBBox: exact parent bbox of warped image (an afwGeom.Box2I or None);
if None then border and maxBBox are used to determine the bbox,
otherwise border and maxBBox are ignored
@return destImage: warped image or masked image (of same type as srcImage)
Definition at line 179 of file warper.py.
|
static |
1.8.5