Hi everyone
I want to build a toolset by using add a script that before I had provided in Pythonwin, this tool divide one raster by maximum value from that raster for normalization it. I found that by command arcpy.getParameterAsText(), we can give flexibility to toolset for introducing parameters. but in case Divide operation, we only can introduce raster1 or constant1 and raster2 or constant2 and I don't know determine name and path of output using arcpy.getParameterAsText() like operations of Buffer, clip and so on. I look forward for your helpful answers. Meanwhile I pasted the script as follows.
Thank you
import arcpy
from arcpy import env
from arcpy.sa import *
arcpy.env.overwriteOutput = True
# Get the input parameters for
inPath = arcpy.GetParameterAsText(0)
constant = arcpy.GetParameterAsText(1)
#outPath = arcpy.GetParameterAsText(2)
#bufferDistance = arcpy.GetParameterAsText(2)
# Run the Buffer tool
Divide(inPath,constant)
#env.workspace = outPath
# Report a success message
arcpy.AddMessage("All done!")
I want to build a toolset by using add a script that before I had provided in Pythonwin, this tool divide one raster by maximum value from that raster for normalization it. I found that by command arcpy.getParameterAsText(), we can give flexibility to toolset for introducing parameters. but in case Divide operation, we only can introduce raster1 or constant1 and raster2 or constant2 and I don't know determine name and path of output using arcpy.getParameterAsText() like operations of Buffer, clip and so on. I look forward for your helpful answers. Meanwhile I pasted the script as follows.
Thank you
import arcpy
from arcpy import env
from arcpy.sa import *
arcpy.env.overwriteOutput = True
# Get the input parameters for
inPath = arcpy.GetParameterAsText(0)
constant = arcpy.GetParameterAsText(1)
#outPath = arcpy.GetParameterAsText(2)
#bufferDistance = arcpy.GetParameterAsText(2)
# Run the Buffer tool
Divide(inPath,constant)
#env.workspace = outPath
# Report a success message
arcpy.AddMessage("All done!")