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
Classes | Functions | Variables
lsst.pipe.tasks.assembleCoadd Namespace Reference

Classes

class  AssembleCoaddConfig
 
class  AssembleCoaddTask
 
class  AssembleCoaddDataIdContainer
 

Functions

def _subBBoxIter
 

Variables

list __all__ = ["AssembleCoaddTask"]
 

Function Documentation

def lsst.pipe.tasks.assembleCoadd._subBBoxIter (   bbox,
  subregionSize 
)
private
Iterate over subregions of a bbox

@param[in] bbox: bounding box over which to iterate: afwGeom.Box2I
@param[in] subregionSize: size of sub-bboxes

@return subBBox: next sub-bounding box of size subregionSize or smaller;
    each subBBox is contained within bbox, so it may be smaller than subregionSize at the edges of bbox,
    but it will never be empty

Definition at line 533 of file assembleCoadd.py.

534 def _subBBoxIter(bbox, subregionSize):
535  """Iterate over subregions of a bbox
536 
537  @param[in] bbox: bounding box over which to iterate: afwGeom.Box2I
538  @param[in] subregionSize: size of sub-bboxes
539 
540  @return subBBox: next sub-bounding box of size subregionSize or smaller;
541  each subBBox is contained within bbox, so it may be smaller than subregionSize at the edges of bbox,
542  but it will never be empty
543  """
544  if bbox.isEmpty():
545  raise RuntimeError("bbox %s is empty" % (bbox,))
546  if subregionSize[0] < 1 or subregionSize[1] < 1:
547  raise RuntimeError("subregionSize %s must be nonzero" % (subregionSize,))
548 
549  for rowShift in range(0, bbox.getHeight(), subregionSize[1]):
550  for colShift in range(0, bbox.getWidth(), subregionSize[0]):
551  subBBox = afwGeom.Box2I(bbox.getMin() + afwGeom.Extent2I(colShift, rowShift), subregionSize)
552  subBBox.clip(bbox)
553  if subBBox.isEmpty():
554  raise RuntimeError("Bug: empty bbox! bbox=%s, subregionSize=%s, colShift=%s, rowShift=%s" % \
555  (bbox, subregionSize, colShift, rowShift))
556  yield subBBox
557 
558 
An integer coordinate rectangle.
Definition: Box.h:53

Variable Documentation

list lsst.pipe.tasks.assembleCoadd.__all__ = ["AssembleCoaddTask"]

Definition at line 37 of file assembleCoadd.py.