Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a 0.5 meter raster that defines presence or absence (cells are either 1 or 0). I have another 5 meter raster, which I created. I would like to calculate a percent coverage of the underlying 0.5 meter raster and pull that value into the corresponding cell in the 5-meter raster. The rasters don't line up and cannot be adjusted.

One thing I now realize is that the cells are slightly less than 0.5 meters, .46999 to be exact. I ran block statistics, using a 10.638298 X 10.638298 rectangle (5/.469999), with snap raster set to, the slightly offset, 5-meter raster. That's taking a while to run, but I'm guessing that it won't work quite right. I also have a 5-meter polygon fishnet and I could also convert the .46999 meter forest cover raster into a polygon feature. Then I could calculate the area within each 5-meter 'cell'.

share|improve this question
Jim, it looks like you may have two accounts. Please merge them by filling out the form at then you will be able to edit and comment on your question. – whuber Mar 3 '13 at 21:44

An easy way to do this is to use block statistics with a Mean rule. Specify a 10 by 10 neighborhood to get 5m blocks from your 0.5m data. Since your values are 0 and 1, the average values will equal percentages. To make sure it lines up with the 5m raster, change your environment settings so that your 5m raster is the snap raster (underneath processing extent) and the output cell size to 5m.

share|improve this answer
+1 Block Statistics are a good alternative to resampling – Aaron Mar 3 '13 at 21:15

Another option is to use a script tool called "Class Percent", available in the ArcGIS - Geomorphometry and Gradient Metrics Toolbox from a GISse contributor. This tool calculates the class percent of a binary integer raster via focal statistics and a user defined moving window. For example, the image to the left is a binary raster (0 or 1) and the class percent output to the right shows the percent cover calculated in a 1 ac moving window.

enter image description here

I'm not sure what you plan to do with the 5m resolution raster. If you want to convert the class percent output to 5m resolution, use Resample. Alternatively, you can specify the cell size output in the Environment Settings under Raster Analysis.

If you want to use the class percent output for additional calculations with your 5m resolution raster, use raster algebra with Raster Calculator. Possibly, Cell Statistics may work for your calculations. As @Jay indicated, use snap raster to align your images if need be.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.