image processing - ArcPy Python script - Runtime Error: ERROR 010240: could not save raster dataset to C:\L_B2dpy with output format GRID -
i m working on script python , arcpy process landsat satellite images. near end of script of error @ same location each time. error occurs after 1 successful run of code (i.e. error occurs on second occurrence of same task)
print "starting rt_b2dpy (2 of 4)" if arcpy.exists(rt_b2dpy): arcpy.delete_management(rt_b2dpy) rt_b2dpy = rt2 - 1 rt_b2dpy.save("rt_b2dpy") print "rt_b2dpy has been created"
i have env.overwriteoutput set true not problem.
i gave code friend run , got process 4 occurrences of block of code output blank. used there modified script (change path entries)and got error @ same location first one:
exceptions.eoferror:[errno 10054] existing connection forcibly closed remote host
this error crashed python , editor.
the script produces grid first run, second 1 creates grid unreadable in arcgis.
i m working windows virtual machine (parallels) on mac 8 gb of ram. virtual machine using 4 gb of ram.
i have not clue going on or how debug it! appreciated.
workaround = found work around saving output tif image rather raster file.
just make sure obvious things aren't problem:
1) have set arcpy.env.workspace, arcpy.env.scratchworkspace? presuming outside gdb, don't need arcpy.env.scratchfolder set (only applies in arcgis 10.1+, think).
2) there enough disk space? i've gotten not-so-helpful message "forcible" close when i've run out of space.
3) bit of voodoo, maybe specify pathname output save, instead of local name show in snippet.
Comments
Post a Comment