LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.pipe.tasks.warpAndPsfMatch.WarpAndPsfMatchTask Class Reference
Inheritance diagram for lsst.pipe.tasks.warpAndPsfMatch.WarpAndPsfMatchTask:

Public Member Functions

def __init__
 
def run
 

Public Attributes

 warper
 

Static Public Attributes

 ConfigClass = WarpAndPsfMatchConfig
 

Detailed Description

A task to warp and PSF-match an exposure

Definition at line 48 of file warpAndPsfMatch.py.

Constructor & Destructor Documentation

def lsst.pipe.tasks.warpAndPsfMatch.WarpAndPsfMatchTask.__init__ (   self,
  args,
  kwargs 
)

Definition at line 53 of file warpAndPsfMatch.py.

53 
54  def __init__(self, *args, **kwargs):
55  pipeBase.Task.__init__(self, *args, **kwargs)
56  self.makeSubtask("psfMatch")
57  self.warper = afwMath.Warper.fromConfig(self.config.warp)

Member Function Documentation

def lsst.pipe.tasks.warpAndPsfMatch.WarpAndPsfMatchTask.run (   self,
  exposure,
  wcs,
  modelPsf = None,
  maxBBox = None,
  destBBox = None 
)
PSF-match exposure (if modelPsf is not None) and warp

Note that PSF-matching is performed before warping, which is incorrect:
a position-dependent warping (as is used in the general case) will
re-introduce a position-dependent PSF.  However, this is easier, and
sufficient for now (until we are able to warp PSFs to determine the
correct target PSF).

@param[in,out] exposure: exposure to preprocess; PSF matching is done in place
@param[in] wcs: desired WCS of temporary images
@param[in] modelPsf: target PSF to which to match (or 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 maxBBox is used to determine the bbox, otherwise maxBBox is ignored

@return a pipe_base Struct containing:
- exposure: processed exposure

Definition at line 58 of file warpAndPsfMatch.py.

58 
59  def run(self, exposure, wcs, modelPsf=None, maxBBox=None, destBBox=None):
60  """PSF-match exposure (if modelPsf is not None) and warp
61 
62  Note that PSF-matching is performed before warping, which is incorrect:
63  a position-dependent warping (as is used in the general case) will
64  re-introduce a position-dependent PSF. However, this is easier, and
65  sufficient for now (until we are able to warp PSFs to determine the
66  correct target PSF).
67 
68  @param[in,out] exposure: exposure to preprocess; PSF matching is done in place
69  @param[in] wcs: desired WCS of temporary images
70  @param[in] modelPsf: target PSF to which to match (or None)
71  @param maxBBox: maximum allowed parent bbox of warped exposure (an afwGeom.Box2I or None);
72  if None then the warped exposure will be just big enough to contain all warped pixels;
73  if provided then the warped exposure may be smaller, and so missing some warped pixels;
74  ignored if destBBox is not None
75  @param destBBox: exact parent bbox of warped exposure (an afwGeom.Box2I or None);
76  if None then maxBBox is used to determine the bbox, otherwise maxBBox is ignored
77 
78  @return a pipe_base Struct containing:
79  - exposure: processed exposure
80  """
81  if modelPsf is not None:
82  exposure = self.psfMatch.run(exposure, modelPsf).psfMatchedExposure
83  with self.timer("warp"):
84  exposure = self.warper.warpExposure(wcs, exposure, maxBBox=maxBBox, destBBox=destBBox)
85  return pipeBase.Struct(
86  exposure = exposure,
87  )

Member Data Documentation

lsst.pipe.tasks.warpAndPsfMatch.WarpAndPsfMatchTask.ConfigClass = WarpAndPsfMatchConfig
static

Definition at line 51 of file warpAndPsfMatch.py.

lsst.pipe.tasks.warpAndPsfMatch.WarpAndPsfMatchTask.warper

Definition at line 56 of file warpAndPsfMatch.py.


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