lsst.afw g8cdfe0ae6a+4fd9e222a8
|
Public Member Functions | |
asArray (self, shape=None, xy0=None) | |
Definition at line 28 of file _spanSetContinued.py.
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.