Raster data objects
Raster data can be read and written using ArcPy. The module allows you to create a new raster object, add data to it, and save it as a raster dataset, or to read an existing raster into memory to perform analysis on it.
ArcPy also allows you to use an existing raster to create a new raster object with the same schema as the original.
A raster is referred to as a raster object when it has been read into memory using Python. A raster object can be read-only, meaning it can’t be overwritten, or it can have read-and-write permissions so that the data in the original raster can be changed when the raster object is saved.
In this section, you will use a Notebook to explore the available raster tools in the arcpy
module. Open ArcGIS Pro and start a new project, and then add a new Notebook from the Insert tab. Rename the Notebook to Chapter9
. Using the Notebook will allow you to view the output of using these tools.