Solved! Go to Solution.
Does anyone have any idea why Viewshed (and Observer Points) would now take such a long time to run, considering that I�??ve run them just fine tens of thousands of times before using the default geodatabase as the scratch workspace, but once I switch to a file directory it becomes slow as molasses over time, staying slow when I change it back? Help!
I�??m using ArcGIS 10.0 with no service pack (which is what our customer uses, and I�??m afraid to upgrade out of fear of losing compatibility of some kind) on Windows 7 32-bit. Background processing is off, and logging geoprocessing operations to a log file is now off.
Knowing that it couldn't be some ArcGIS-specific folder that would've been wiped by the uninstall/reinstall, I tried looking for system-wide temp folders that ArcGIS touches. After clearing out Users/myusername/AppData/Local/Temp, my viewshed completion time is now back to normal.
Also I tried the in_memory workspace but viewshed doesn�??t seem to honor the fields in the observer features (OFFSETA, OFFSETB, etc.) unless they�??re in a saved file.
arcpy.SetLogHistory(False) arcpy.env.pyramid = "None" arcpy.env.rasterStatistics = "None"