Frequently asked question

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:

[O-Image] Sample of changes for affected parameters:

Article ID:000007609

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic