Contents
How do I use raster Calculator in GIS?
Procedure
- In ArcMap, navigate to ArcToolbox > Spatial Analyst Tools > Map Algebra > Raster Calculator.
- In the Raster Calculator window, double-click one of the rasters to be analysed, click the minus sign (-), and double-click the second raster.
- Specify the name and location for the output raster.
- Click OK.
Where is the raster Calculator?
To access the Raster Calculator, select it from the Spatial Analyst toolbar menu. In the dialog box, you can enter Map Algebra in the expression box. The available rasters will be displayed in the Layers list.
Why is the raster calculator not available in ArcPy?
Although the line of code is generated for the Raster Calculator tool, the execution returns an empty output, or fails with the following error message: The Raster Calculator tool is not intended for use in scripting environments and is not available in the standard Spatial Analyst ArcPy module.
What are the operators in raster calculator in Python?
Numbers and scalars can be directly entered into an expression. The operators in the Raster Calculator tool dialog box are: Multiple geoprocessing tools and operations can be combined in a map algebra expression using standard Python syntax. When typing tool names, be sure to check the tool name syntax.
Is the raster calculator available with Spatial Analyst License?
Available with Spatial Analyst license. Provides access to all existing math functions and returns a raster object with the mathematical operation applied. For more information about how this function works, see the Raster Calculator raster function. The referenced raster dataset for the raster object is temporary.
Can a raster calculator be used in ModelBuilder?
The Raster Calculator tool can be used in ModelBuilder, but keep the following points in mind: The syntax of the expression determines how variables are to be specified. If you select a variable from the variable list, it will be automatically added to the expression at the current cursor location.