Solved! Go to Solution.
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!")
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.That's good. Please click the check mark next to my post to indicate it answered your question.
I plan to do this work about about Fuzzy membership and Weighted sum with 5 layer. can you help me about these?You should start a new thread with your new question.