stevedugdale

Euclidean Distance - Error 010240

Discussion created by stevedugdale on Jun 5, 2012
Latest reply on Jun 6, 2012 by curtvprice
Hi,
I'm trying to run the Euclidean Distance tool from a python script (my first attempt at python) and keep getting the message below:

Traceback (most recent call last):
  File "E:/VTA/Models/Calc_Distance_Household_LOOP.py", line 44, in <module>
    Dist_HH0.save("E:/VTA/TEST/output/Distance_from_Household/Script_First_10_HH")
RuntimeError: ERROR 010240: Could not save raster dataset to E:\VTA\TEST\output\Distance_from_Household\Script_First_10_HH with output format GRID.

I'm assuming that the raster will be called Dist_HH0 and will be saved in the folder Script_First_10_HH following the filepath in the error message.  How do I overcome this error please?

Ultimately, I want to run the euclidean distance tool on numerous points in a shapefile and create a seperate raster for each point using a loop.  How do I change the raster output name for each iteration of the loop?

Any help with resolving this would be much appreciated.

Thanks
Steve

Outcomes