

def summarize(self, geom, stat=None):
    'Returns a new RasterQuerySet with subsetted/summarized ndarrays.\n\n        Arguments:\n        geom -- geometry for masking or spatial subsetting\n        Keyword args:\n        stat -- numpy supported summary stat as str (min/max/mean/etc)\n        '
    if (not hasattr(geom, 'num_coords')):
        raise TypeError(('Need OGR or GEOS geometry, %s found' % type(geom)))
    clone = self._clone()
    for obj in clone:
        stat.image = obj.array(geom, stat)
    return clone

dataset/ETHPy150Open bkg/django-spillway/spillway/query.py RasterQuerySet.summarize/VarMisuse@60/174 `obj`->`stat`