def summarize(self, geom, stat=None):
        """Returns a new RasterQuerySet with subsetted/summarized ndarrays.

        Arguments:
        geom -- geometry for masking or spatial subsetting
        Keyword args:
        stat -- numpy supported summary stat as str (min/max/mean/etc)
        """
        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
dataset/ETHPy150Open bkg/django-spillway/spillway/query.py/RasterQuerySet.summarize/operator `%` -> `*`