import arcpy from arcpy import env from arcpy.sa import * import os arcpy.env.overwriteOutput = True # Get the input parameters for inPath = arcpy.GetParameterAsText(0) constant = int(arcpy.GetParameterAsText(1)) #convert to integer outPath = arcpy.GetParameterAsText(2) # Run the Divide tool result = Divide(Raster(inPath),constant) result.save(os.path.join(outPath, "someraster")) # Report a success message arcpy.AddMessage("All done!")
Thank you, I again tried your code of course with a little change and fortunately this time it was work.
I plan to do this work about about Fuzzy membership and Weighted sum with 5 layer. can you help me about these?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.