FAQ: Why do Python scripts no longer work with some Spatial Analyst functions?
Why do Python scripts no longer work with some Spatial Analyst functions?
In version 9.1, changes have been made to certain Spatial Analyst parameters that contain complex strings. Previously, the strings used commas to separate multiple values, but they are now space delimited.
For scripts created prior to ArcGIS version 9.1 that contain the following Spatial analyst parameters, remove comma separators to execute the script successfully.
Affected parameters (sample Spatial Analyst tool) are as follows:
- Search Radius control (IDW)
- Neighborhood control (Point Density, Block Statistics, Focal Statistics)
- Horizontal Factor and Vertical Factor (Path Distance, Path Distance Allocation, Path Distance Back Link)
Examples of affected parameters: