Bug
| Bug-ID-Nummer | BUG-000160654 |
|---|---|
| Eingereicht | August 15, 2023 |
| Zuletzt geändert | June 5, 2024 |
| Gilt für | ArcGIS Pro |
| Gefunden in Version | 2.9 |
| Betriebssystem | N/A |
| Betriebssystemversion | 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:
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen