| Message |
I'm having an issue where if I call any spatial analyst tool in a script involving a raster, it fails. Until I restart ArcGIS, ANY Spatial Analyst function will fail involving a raster.
If, however, I first call a spatial analyst tool by itself, let it complete, and THEN run my script, it will work no matter the number of times that I run it afterwards.
Whenever I relaunch ArcGIS, everything resets itself, so that I have to re-run a stock tool before running my tool.
I have looked at the environments under the "Results tab" or ArcToolbox, and the environments are exactly the same. Same everything, except one failed and the other completed successfully.
My function call looks like this, |
| |
tempShape = "E:\\dbitw\\shape.shp"
tempRaster = "E:\\dbitw\\iwdr"
#my workspace is "E:\\scratch", but I've tried it as "E:\\dbitw" as well.
#I've also tried using / instead of \\
gp.IWD_sa(tempShape, "In_", tempRaster, "3.95575", "2", "VARIABLE 12", "") |