lsst.afw  16.0-12-gf08c31002
Public Member Functions | Static Public Attributes | List of all members
lsst.afw.math.warper.Warper Class Reference

Public Member Functions

def __init__ (self, warpingKernelName, interpLength=_DefaultInterpLength, cacheSize=_DefaultCacheSize, maskWarpingKernelName="", growFullMask=afwImage.Mask.getPlaneBitMask("EDGE"))
 
def fromConfig (cls, config)
 
def getWarpingKernel (self)
 
def getMaskWarpingKernel (self)
 
def warpExposure (self, destWcs, srcExposure, border=0, maxBBox=None, destBBox=None)
 
def warpImage (self, destWcs, srcImage, srcWcs, border=0, maxBBox=None, destBBox=None)
 

Static Public Attributes

 ConfigClass = WarperConfig
 

Detailed Description

Warp images

Definition at line 96 of file warper.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.afw.math.warper.Warper.__init__ (   self,
  warpingKernelName,
  interpLength = _DefaultInterpLength,
  cacheSize = _DefaultCacheSize,
  maskWarpingKernelName = "",
  growFullMask = afwImage.Mask.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 106 of file warper.py.

Member Function Documentation

◆ fromConfig()

def lsst.afw.math.warper.Warper.fromConfig (   cls,
  config 
)
Create a Warper from a config

@param config: an instance of Warper.ConfigClass

Definition at line 120 of file warper.py.

◆ getMaskWarpingKernel()

def lsst.afw.math.warper.Warper.getMaskWarpingKernel (   self)
Get the mask warping kernel

Definition at line 137 of file warper.py.

◆ getWarpingKernel()

def lsst.afw.math.warper.Warper.getWarpingKernel (   self)
Get the warping kernel

Definition at line 133 of file warper.py.

◆ warpExposure()

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, an lsst.afw.geom.SkyWcs
@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 lsst.geom.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 lsst.geom.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 141 of file warper.py.

◆ warpImage()

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, an lsst.afw.geom.SkyWcs
@param srcImage: image or masked image to warp
@param srcWcs: WCS of image, an lsst.afw.geom.SkyWcs
@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 lsst.geom.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 lsst.geom.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 175 of file warper.py.

Member Data Documentation

◆ ConfigClass

lsst.afw.math.warper.Warper.ConfigClass = WarperConfig
static

Definition at line 99 of file warper.py.


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