I have one raster file of aerosol data and one shape file with state boundaries. I need to calculate the sum of aerosol pixel values for each state. Please let me know how to calculate sum pixel value for each state? Also do I need to clip or join the raster and shapefile before calculating the pixel value? Regards,Rupsa
Solved! Go to Solution.
The states featuresclass should be used as "zone" raster or featureclass in the Zonal Statistics as Table—Help | ArcGIS Desktop tool. This will calculate the sum of the raster values for each zone (in this case for each state).
This can be achieved using the Zonal Statistics as Table—Help | ArcGIS Desktop . The tool will be able to perform statistics over a raster for each polygon and store the result in a table. Use the SUM option (or ALL is you want to have more detail).
Thank you so much for the explanation. When I calculate the zonal statistics as table on my raster file, it gives me the sum of each pixel value. But I also need the sum of the pixel value of each states of a country. How to get that sum of pixel value of each state?
The states featuresclass should be used as "zone" raster or featureclass in the Zonal Statistics as Table—Help | ArcGIS Desktop tool. This will calculate the sum of the raster values for each zone (in this case for each state).