# 3.4.5.12. Zonal stat raster¶

Zonal stat raster

This tab allows for calculating the statistics related to an input raster for every unique value of a reference vector or raster. For example, if a vector file contains a numeric field zone, this tool allows for calculating the mean value (for each zone) of input raster pixels.

## 3.4.5.12.1. Zonal stat raster¶

• Select the input raster : select a raster (already loaded in QGIS);
• : refresh layer list;
• Use value as NoData : if checked, pixels having NoData value are excluded from the calculation;
• Select the reference vector or raster : select a raster or a vector (already loaded in QGIS), used as reference layer for zones;
• : refresh layer list;
• Vector field : if a vector is selected as reference, select a vector field containing numeric values;

## 3.4.5.12.2. Statistic¶

• Select a statistic : select a statistic; available options are Sum, Max, Min, Count, Mean, Median, Percentile, StandardDeviation; for Percentile a value can be entered;
• BATCH : add this function to the Batch;
• RUN : choose the output destination and start the calculation;