Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

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 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 at 4:29

Your Answer

 
discard

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.