Outdated version of the documentation. Find the latest one here.

Raster layer statistics


Calculates basic statistics of the raster layer.


Input layer [raster]
Raster to analyze.


Statistics [html]
Analysis results in HTML format.
Minimum value [number]
Minimum cell value.
Maximum value [number]
Maximum cell value.
Sum [number]
Sum of all cells values.
Mean value [number]
Mean cell value.
valid cells count [number]
Number of cell with data.
No-data cells count [number]
Number of NODATA cells.
Standard deviation [number]
Standard deviation of cells values.

Console usage

processing.runalg('qgis:rasterlayerstatistics', input, output_html_file)

See also