Error
| Número de ID del error | BUG-000160654 |
|---|---|
| Enviado | August 15, 2023 |
| Última modificación | June 5, 2024 |
| Relacionado con | ArcGIS Pro |
| Versión encontrada | 2.9 |
| Sistema operativo | N/A |
| Versión de sistema operativo | N/A |
| Estado | 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
ID del error: BUG-000160654
Software:
Obtener ayuda de expertos en ArcGIS
Descargar la aplicación de soporte de Esri