Why do Python scripts no longer work with some Spatial Analyst functions?
Last Published: April 25, 2020
Answer
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:
Article ID: 000007609
Software:
ArcMap
Receive notifications and find solutions for new or common issues
Get summarized answers and video solutions from our new AI chatbot.