Erro
| Número de ID do Erro | BUG-000160654 |
|---|---|
| Enviado | August 15, 2023 |
| Última Modificação | June 5, 2024 |
| Aplica-se à | ArcGIS Pro |
| Versão encontrada | 2.9 |
| Sistema Operacional | N/A |
| Versão do Sistema Operacional | 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
ID do Erro: BUG-000160654
Software:
Obtenha ajuda de especialistas do ArcGIS
Baixe o Aplicativo de Suporte da Esri