emyoung90

How can you count pixels in a raster by value?

Discussion created by emyoung90 on Feb 6, 2013
Latest reply on Feb 13, 2013 by emyoung90
Hi-

I have a raster file classified into 5 values (1-5, zero being no data), with points overlaid in a shapefile.

What I'm trying to do is, within a 2 km buffer around each of these points, count the number of pixels of each value. I've attached a photo. I'm pretty new to Arc, but what I've done so far is use the Zonal tool in the spatial analyst toolbox to export the zonal statistics to a table, with the "input feature zone data" being the buffer shapefile, and the "input value raster" being the underlying raster file containing the pixel values.

From here, I think I need to just add a column to the resulting stat table and have it calculate the number of pixels of each value, but I don't know how to do that.

Any help would be extremely appreciated! I hope all that made sense.

Cheers,
Emma

Attachments

Outcomes