

def arrays(self, field_name=None):
    'Returns a list of ndarrays.\n\n        Keyword args:\n        field_name -- raster field name as str\n        '
    fieldname = (field_name or self.raster_field.name)
    arrays = []
    for obj in self:
        arr = getattr(obj, fieldname)
        if isinstance(arr, np.ndarray):
            arrays.append(arr)
        else:
            arrays.append(obj.array())
    return arrays

dataset/ETHPy150Open bkg/django-spillway/spillway/query.py RasterQuerySet.arrays/original