It fails because you are using a lot of memory (RAM). I tested this out on my computer, and:n1 = zeros((2962,4476,11))
uses up 1,147,692KB - i.e. about one GB... But:n1 = zeros((2962,4477,11))
fails; with MemoryError.Your matrix is bigger than that, so it fails...This actually doesn't have anything to do with ArcGIS... Try googling 'numpy MemoryError'. If that doesn't work, you have two options:
- Make your matrix smaller.
- Only if you have a 64bit operating system, AND you don't need to use arcpy functions in your script you could try installing 64bit Python and 64bit Numpy. 64bit programs let you use more RAM than normal; BUT I don't know if this will work, or if it will solve your problem. However this will NOT work with arcpy stuff...