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
Functions
lsst.afw.detection.utils Namespace Reference

Functions

def writeFootprintAsDefects
 

Function Documentation

def lsst.afw.detection.utils.writeFootprintAsDefects (   fd,
  foot 
)
Write foot as a set of Defects to fd

Definition at line 25 of file utils.py.

25 
26 def writeFootprintAsDefects(fd, foot):
27  """Write foot as a set of Defects to fd"""
28 
29  bboxes = afwDetect.footprintToBBoxList(foot)
30  for bbox in bboxes:
31  print >> fd, """\
32 Defects: {
33  x0: %4d # Starting column
34  width: %4d # number of columns
35  y0: %4d # Starting row
36  height: %4d # number of rows
37 }""" % (bbox.getMinX(), bbox.getWidth(), bbox.getMinY(), bbox.getHeight())
std::vector< lsst::afw::geom::Box2I > footprintToBBoxList(Footprint const &foot)