Euclidean allocation/distance error

07-07-2011 11:31 AM
Occasional Contributor
I am trying to run a euclidean allocation/distance command on a medium sized raster (a HUC8 watershed, 8000 x 9000 cells).  The in_source_data is a buffered stream network grid whose values are elevations.  Both the inputs and outputs are being stored in a file geodatabase, created in ArcGIS 10. I am running it in Python (PythonWin) using the following snippet of pertinent code (after having imported the necessary modules, etc).

outEucAllo2 = EucAllocation("bufgrid", "", "", cellsize, "", "bufdist", "")"bufallo")
del outEucAllo2

It runs seemingly well-- no errors raised.  Problem is, when I look at the results, it looks great in some the areas and very incorrect in other areas.  (Attached image 1) When you zoom in, you can see that it is, in fact, corrupt and not just a display/pyramids problem.

Is this the results of a memory limitation/error?  The memory usage on my machine doesn't seem strained (PythonWin using <500MB out of 2GB available,  with no other big processes running).  Any other possible causes?

Thanks in advance for any input.
0 Kudos
1 Reply
Occasional Contributor
In case anyone else has this problem, it seems to be resolved by running the Python script in the ArcMap Python dialog rather than in PythonWin. 

Perhaps the ArcSOMP.exe executable manages memory better than PythonWin.exe, even if they are using the same modules???
0 Kudos