sebastian_4m

Raster processing in arcpy (performance issues)

Discussion created by sebastian_4m on Oct 6, 2011
Latest reply on Apr 13, 2012 by nilsbabel
Hi,
I have created a piece of code that allows me to create a cost distance raster per feature (point) per feature class in a GDB iterating firstly the FCs (applying 'for' in FC list) and then the rows (using cursor).  The script works fine but it takes an overwhelmingly long time to complete the process (40 hours for ~15,000 features). 
- Is there any way to speed up the script?
- Somebody suggested me that the cursor might be the cause of the performance I am getting. Is this possible? if so, how can I fix it?
- Another approach that I am considering is using another function to calculate the distances (not arcpy) does anybody know another python module that I could use instead?

Thanks so much.

Outcomes