Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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 am running cell statistics in arcpy. Essentially I am summing together a folder of grd files to create a new grd representing their sum

This will eventually take place on a folder of 20,000 raster grds.

Is there a maximum number of raster datasets that can be processed by the cellStatistics tool?

share|improve this question
up vote 5 down vote accepted

The help for this tool does not explicitly state there is a limit but in a project about a year ago I was feeding it folders with many thousands of rasters and the performance was very poor. What I eventually did was SUM the rasters in batches of 100 then SUMMED the batched values. This ran much quicker and was easily implemented with a bit of looping in Python and ArcPy.

share|improve this answer
Good to know. I will probably do something like this once I get my 20k ready for summing together – snowgage Aug 28 '14 at 18:46
+1 For many reasons, sticking thousands of files in one folder is rarely a good idea. A better organization would have the files arranged into a hierarchy of folders, each containing far fewer datasets. That would practically force one to implement this (better) solution in the first place. – whuber Aug 29 '14 at 4:29

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.