Select to view content in your preferred language

Arcpy ClassifyRaster Runs Without Throwing Errors or Crashing IDE

330
1
12-14-2022 02:49 PM
arodriguez_hz
New Contributor

The code chunk at the end of the body runs through IDLE 3.7.9 using edit with ArcGIS Pro. The original code has print to screen lines that if  triggered confirm the completion of the ClassifyRaster function. The code chunk was run for two hours without a confirmation of the code lines completion. So, I began to wonder if it was the machine's capabilities butthe same machine completed the task within 1-5mins through ArcGIS Pro desktop. I am wondering if I could get help by posting here. Otherwise, I would like to reach out to tech support to inform them of the potential bug. 

Thanks,

Anthony Rodriguez

import arcpy
from arcpy.sa import *

OutFolder = r"C:\x" +"\\"

ECD = r"C:\x.ecd"

inRaster = r"C:\x.tiff"

outRaster = ClassifyRaster(inRaster, ECD)

outRaster.save(OutputFolder+ inraster)

0 Kudos
1 Reply
DanPatterson
MVP Esteemed Contributor

OutputFolder   : you mean OutFolder

inraster              : you mean inRaster

 

and even if you corrected those errors, you would get an impossible path

 

OutFolder+ inRaster
'C:\\x\\C:\\x.tiff'


... sort of retired...