raster_tools.Raster.prod#

Raster.prod(*args, **kwargs)#

Reduce the raster to one dask value by applying prod across all bands.

The reduction always covers every non-null cell of every band. The method accepts numpy’s reduction arguments only so that np.prod(raster) can dispatch to it. Passing a positional argument or an unsupported keyword raises a TypeError, and passing a value other than the default (e.g. axis=0) raises a ValueError.