def cutout_shape(self, shape_obj):

        view, mask = self.get_shape_view(shape_obj)

        # cutout our enclosing (possibly shortened) bbox
        data = self._slice(view)

        # mask non-containing members
        mdata = numpy.ma.array(data, mask=numpy.logical_not(mask))
        return mdata
Cut out and return a portion of the data corresponding to `shape_obj`.
dataset/ETHPy150Open ejeschke/ginga/ginga/BaseImage.py/BaseImage.cutout_shape