Select to view content in your preferred language

Zonal statistics for categorical rasters?

1890
2
04-05-2011 01:20 PM
TiffanyDuhl
Emerging Contributor
Hello,  This is a post which relates to an older thread I started (which attracted no replies, so I thought I would re-frame the question)...

I want to get the variety and count of the number of raster cells within each zone (the zone is made up of regularly-sized polygons, or could even just be a raster with a larger cell size than my input raster) for each value that is found within each zone.  It is sort of analogous to zonal statistics, but in this case, mean, range, etc. don't matter, what I want is an output table that looks like this:

Cell ID,         Raster Value,   Count of Input Raster Values
1,                        11,                          3
1,                        21,                         45
1,                        22,                         0
1,                        31,                         21
1,                        34,                         200
2,                        11,                         13
2,                        21,                         4
2,                        22,                         20
2,                        31,                         111
2,                        34,                         0


...and so on.  Does anyone know if there is a way to do this?


Thanks!
0 Kudos
2 Replies
NawajishNoman
Esri Contributor
Hi Tiffany,

Please also look at the Tabulate Area tool. This tool calculates cross-tabulated areas between two datasets and outputs a table. See Working with Tabulate Area for additional information.

Thanks,

Nawajish Noman
Esri
0 Kudos
TiffanyDuhl
Emerging Contributor
Thanks to both Bill and Nawajish, and as it turns out, the "Tabulate Area" tool was perfect!
0 Kudos