Bug
| Bug ID Number | BUG-000117326 |
|---|---|
| Submitted | October 9, 2018 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS for Desktop |
| Version found | 10.6.1 |
| Status | Non-Reproducible |
Run the script through a Python 3.6.5 IDLE (ArcGIS Pro 2.2.3) environment
It is possible to get two and three constant value rasters when running the analysis through a Python script where the 'env.workspace' would have to be set to a file geodatabase.
Like the following format:
import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "C:\Caseuser\Andrea\RasterConstanValue_Test2\Test1.gdb"
pixel_value = 2
outConstRaster = CreateConstantRaster(2)
outConstRaster.save("C:\Caseuser\Andrea\RasterConstanValue_Test2\Test1.gdb\Test{}".format(pixel_value)")
Bug ID: BUG-000117326
Software:
Get help from ArcGIS experts
Download the Esri Support App