Raster Analysis with Python

Both the arcpy and arcgis modules have raster tools included in their classes and methods. For arcpy, the tools exposed are available in the Spatial Analyst toolbox, as well as some unique methods of performing Map Algebra known as operators. For the arcgis module, the tools are available in the arcgis.raster class.

In this chapter, we will use a Notebook in ArcGIS Pro and a digital elevation model (DEM) TIF file to explore how to use Python with raster data. We will cover the following topics:

  • Raster data objects and their properties
  • ArcPy raster tools: The Spatial Analyst toolset and Map Algebra
  • Using arcgis.raster

Each section covers a distinct component and does not require the completion of the preceding ...

Get Python for ArcGIS Pro now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.