Select to view content in your preferred language

Zonal Statistics: use alternative field in the "iinput value" raster

1408
2
Jump to solution
07-27-2013 10:31 PM
JCRiveros
New Contributor
By default Zonal Statistics uses the "value" field of the input value raster for the calculation of the stats. Is there any way to use a different field attribute?  I have a raster with 24 attribute fields and it would be a burden to have to create 24 single grids (some of these floating) just to conduct the Zonal Statistics operation.
Thanks in advance.
JC Riveros
0 Kudos
1 Solution

Accepted Solutions
TOMKONG
Deactivated User
For zonal Statistics in arcgis, the raster should be the grid format and can have only one additional field, so this tool doesn't fit your purpose.
But you can:
1.Convert your raster (grid or tiff...) to point feature class, using common field to join the source data fields to the point layer;
2.Intersect the converted point layer and zonal polygon layer, the intersected point layer should have both layers attributes;
3. Open the intersected point layer attribute table, click the polygon ID field name (from zonal layer), using "Summariz..." field statistics function to summarize that 24 fields (for each field, you can select different summarize value --Max, Min, Mean, Med, Maj...,and the out put count field should be the total pixel points number for each polygon.

View solution in original post

0 Kudos
2 Replies
TOMKONG
Deactivated User
For zonal Statistics in arcgis, the raster should be the grid format and can have only one additional field, so this tool doesn't fit your purpose.
But you can:
1.Convert your raster (grid or tiff...) to point feature class, using common field to join the source data fields to the point layer;
2.Intersect the converted point layer and zonal polygon layer, the intersected point layer should have both layers attributes;
3. Open the intersected point layer attribute table, click the polygon ID field name (from zonal layer), using "Summariz..." field statistics function to summarize that 24 fields (for each field, you can select different summarize value --Max, Min, Mean, Med, Maj...,and the out put count field should be the total pixel points number for each polygon.
0 Kudos
JCRiveros
New Contributor
Thanks Tom for the quick reply.
I appreciate your help and it is the right way to go. I have a small problem at the beginning because the original raster resolution did not produce a suitable points layer for the intersection process.
[ATTACH=CONFIG]26280[/ATTACH]
As you can see in the first figure zone features of the "zones" layer did not capture any single point and as a consequence I have empty lines in my database result (actually not empty but -9999 missing values).
All I have to do was to resample the grid by 10x and then the point conversion generated a denser layer that was effectively intersected with the zone layers as it shown in the attached figure.
[ATTACH=CONFIG]26283[/ATTACH]
Once again, thanks a lot for your help.
Best
JC
0 Kudos