raster_tools.general.local_stats#

raster_tools.general.local_stats(raster, stype)[source]#

Creates a Raster of summarized values across bands.

The approach is based on ESRI’s local function.

Parameters
  • raster (Raster or path str) – Input Raster object or path string

  • stype (str) – Summarization type. Valid opitions are mean, std, var, max, min, maxband, minband, prod, sum, mode, median, unique, entropy, asm

Returns

The resulting raster of values aggregated along the band dimension.

Return type

Raster

References