My Arcpy code is not working because an error with the last line: Error 000824: The tool is not licensed. I have all my extensions turned on, so I don't know why I would be getting this error. It seems I only need to import arcpy.sa. Did I do this correctly, or are there other modules that should be imported for this code to work? Problem with my batch process? Thanks for any ideas.
import arcpy, os, string, glob, sys from arcpy import env from arcpy.sa import * env.workspace = r"C:\VMshared\small_example_valley8\SD2part" outFolder = r"C:/VMshared/small_example_valley8/SDpartINT/INT" for rasterFile in arcpy.ListRasters("*.tif"): oName, oExt = os.path.splitext(rasterFile + ".tif") outRaster = os.path.join(outFolder, oName + ".tif") arcpy.gp.Int_sa(rasterFile,outRaster)
أكثر...
import arcpy, os, string, glob, sys from arcpy import env from arcpy.sa import * env.workspace = r"C:\VMshared\small_example_valley8\SD2part" outFolder = r"C:/VMshared/small_example_valley8/SDpartINT/INT" for rasterFile in arcpy.ListRasters("*.tif"): oName, oExt = os.path.splitext(rasterFile + ".tif") outRaster = os.path.join(outFolder, oName + ".tif") arcpy.gp.Int_sa(rasterFile,outRaster)
أكثر...