Q: How do I calculate statistics for a raster within the zones of another data layer in ArcGIS?
Answer
The Zonal Statistics as Table geoprocessing tool allows a user to calculate statistics from a raster within zones from a vector layer. For example, one could use a digital elevation model and a state boundaries layer to find the average elevation in each US state.
- In the ArcToolbox, open Spatial Analyst Tools > Zonal > Zonal Statistics as Table
- Input raster or feature zone data: boundary layer
- Zone field: unique zone identifier (e.g. name, unique ID)
- Input value raster: raster layer for whose value you want statistics
- Statistics type: by default, this tool calculates all statistics
- Join the table to the zone using the field you specified in 2b.
Further Resources
See Also
Created by MIT GIS Services. Email gishelp(at)mit.edu for more assistance.