HOW TO
Steps for finding the percentage of a particular cell value within a defined focal neighborhood.
Code:
PERCENTAGE_GRID = FOCALSUM( con( <input_grid> == <value>, 1 ), RECTANGLE, 3, 3, DATA) / 9
Note:
The above example nests the three steps into one expression, which determines the percentage of <value> within a 3 by 3 focal area containing 9 cells.
Article ID:000002535
Get help from ArcGIS experts
Download the Esri Support App