Select to view content in your preferred language

Count # of occurrences in a tessellation

212
4
12-06-2024 02:00 PM
Labels (1)
leahmaps
Frequent Contributor

Hi all, 

I have a hexagon tessellation that I am trying to get transform statistics into from a raster below (could turn the raster into polygons, based on area in acres, or pts, based on counts). 

The picture below will help explain, but for each tessellation, I want to count the # of total raster cells, as well as the occurence of each value (i.e. 19 pixels, 6 orange, 9 blue, 4 yellow). Percents would be fine, too, but raw counts preferred. I have tried zonal staistics, summarize within, etc. but nothing seems to give me an output what I am looking for. Usually, things are based off mean/median/mode/etc. and is counting the no value/backround raster points. Has anyone done anything similar or have a simple workflow?

leahmaps_0-1733522187710.png

 

0 Kudos
4 Replies
BobBooth1
Esri Contributor
0 Kudos
leahmaps
Frequent Contributor

I did try that, along with regular zonal statistics. The issue for me is that it doesn't count each thing individually, and in the case of a raster, is still counting 'no data'/background cells, even though they were deleted from the set, I wish it worked because that was what I was hoping to use!

0 Kudos
DanPatterson
MVP Esteemed Contributor
0 Kudos
DavidPike
MVP Frequent Contributor

Possibly Tabulate Intersection tool after converting to vector.  Then divide 'Area' by the original raster cell size to get Count.
https://pro.arcgis.com/en/pro-app/3.3/tool-reference/analysis/tabulate-intersection.htm 

0 Kudos