Available with Spatial Analyst license.
The Spatial Analyst module is a Python module for analyzing raster data with the functionality provided by the ArcGIS Spatial Analyst extension. It provides access to all the geoprocessing tools available in the Spatial Analyst toolbox as well as other helper functions and classes that allow you to more easily automate your workflows through Python.
The module has three major components: Classes, Operators, and Functions.
The functional components of Spatial Analyst, and some other related components that are useful, are identified below.
Spatial Analyst components
Spatial Analyst classes are primarily used for defining parameters for Spatial Analyst tools that may have varying numbers of arguments depending on the parameter type selected (for example, the neighborhood type) or when the number of entries in the parameters can vary depending on the specific situation (for example, a reclass table). By using classes for parameters, you can access and programmatically change any of the individual entries in the parameter.
Spatial Analyst Map Algebra supports a series of operators. The operators can be grouped into Arithmetic, Bitwise, Boolean, and Relational categories. The available operators and their categories are listed below.
Functions are available to apply environment settings to an existing raster.
The ArcPy raster functions primarily convert Rasters to NumPy arrays and NumPy arrays to rasters.
The Raster ArcPy class creates a raster object which can be used in Python scripting or in a Map Algebra expression.