I have a large number of rasters (300+) I would like to average using Raster Calculator as is explained at Averaging set of rasters using Raster Calculator of ArcGIS Desktop? I know I can manually select each raster by double-clicking, hitting the '+' key, and then dividing by the total number of files.

Is there a less tedious way to get the average raster, without having to double-click and hit "+" hundreds of times? (or typing each raster's filename into the box, or something similarly tedious)


1 Answer 1


As @FelixIP said, use Cell Statistics. You'll need the Spatial Analyst license, however.

enter image description here

Alternatively, if you don't have access to Spatial Analyst, and you're familiar with python, you could use arcpy. What I would do is:

  1. Loop through each raster and convert them to numpy arrays using RasterToNumpyArray.
  2. As you're looping through the rasters, store each numpy array into another numpy array (an array of arrays).
  3. Calculate the mean of that array.
  4. Convert that back to a raster using NumpyArrayToRaster.

I haven't tried this, but I'm pretty sure it should work.

  • 1
    I just reread your question and see you have spatial analyst, which should be obvious. I'll leave the alternative solution for others who may not have it.
    – Fezter
    Commented Jun 21, 2016 at 23:30
  • @PolyGeo something wrong here. What happened to my comments. Why it is not here anymore?
    – FelixIP
    Commented Jun 22, 2016 at 5:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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