I'd like to read from the attribute table of an intermediate raster generated by arcpy.sa.Combine:
combined = arcpy.sa.Combine(['raster1', 'raster2']) arcpy.BuildRasterAttributeTable_management(combined) data = [row for row in arcpy.da.SearchCursor(combined, ["VALUE", "COUNT"])]
The above code raises:
RuntimeError: 'in_table' is not a table or a featureclass
Is there a way to access the RAT without saving the raster?