aliceduffesriuk-esridist

Calculating percentages of a raster

Discussion created by aliceduffesriuk-esridist Employee on Jun 11, 2012
Hello,

I need to calculate the percentages of a raster which has a value of 1, 2, 3 or 4.
What I mean by this is, I am using the MODIS burnt area product, and I want to know what percentage of a country has burnt in a year.
I have rasters per country which contain a value of 1, 2, 3, 4 (number of times it has burnt), and 0 (it has not burnt), and a COUNT field of how many pixels have that value.

How do i automate calculating the percentage? I have over 50 countries, and data for the last 10 years.. so 500 rasters!
I would like to do it in model builder and then export to python..

Please help!

Outcomes