Bug
| Bug ID Number | BUG-000160654 |
|---|---|
| Submitted | August 15, 2023 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS Pro |
| Version found | 2.9 |
| Operating System | N/A |
| Operating System Version | N/A |
| Status | Will Not Be Addressed |
The Raster Calculator tool is not intended for use in Python. The Raster Calculator tool is used to perform Map Algebra using Python in the User Interface, ie ModelBuilder. Map Algebra in Python can be performed natively. Map Algebra does not need to be wrapped inside a geoprocessing tool like the Raster Calculator tool.
Perform Map Algebra like this:
from arcpy.sa import *
arcpy.env.mask ="C:\\temp\\BUG-000160654\\repro\\ManalData\\blkgrp.shp"
ras1 = arcpy.Raster('usgsdem')
ras2 = arcpy.Raster('gfchot')
myras = ras1*ras2
Bug ID: BUG-000160654
Software:
Get help from ArcGIS experts
Download the Esri Support App