def summarize(self, geom, stat=None):
        if not hasattr(geom, 'num_coords'):
            raise TypeError('Need OGR or GEOS geometry, %s found' % type(geom))
        clone = self._clone()
        for obj in clone:
            obj.image = obj.array(geom, stat)
        return clone
Returns a new RasterQuerySet with subsetted/summarized ndarrays.
dataset/ETHPy150Open bkg/django-spillway/spillway/query.py/RasterQuerySet.summarize