I'm trying to print raster batch count number in PyScripter and ArcGIS 10.3 I'm using the next code:
import arcpy carpeta = arcpy.env.workspace = r"C:\Base_de_datos\Cuencas_raster" for raster in carpeta: with arcpy.da.SearchCursor(raster, ("COUNT")) as cursor: for row in cursor: count = row print raster + "," + count
PyScripter give the next error:
Traceback (most recent call last): File "", line 16, in RuntimeError: cannot open 'C'
Any idea to how resolve this?