lsst.afw g2feeb41cd2+0b570383f2
|
Public Member Functions | |
def | asArray (self, shape=None, xy0=None) |
Definition at line 28 of file _spanSetContinued.py.
def lsst.afw.geom._spanSetContinued.SpanSet.asArray | ( | self, | |
shape = None , |
|||
xy0 = None |
|||
) |
Convert a SpanSet into a numpy boolean array Parameters ---------- shape : `tuple` of `int` The final shape of the output array. If `shape` is `None` then the extent of the bounding box is used. xy0 : `~lsst.geom.Box2I` or `tuple` of `int` The lower-left corner of the array that will contain the spans. If `xy0` is `None` then the origin of the bounding box is used. Returns ------- result : `numpy.ndarray` The array with pixels contained in `spans` marked as `True`.
Definition at line 29 of file _spanSetContinued.py.