import arcpy import string from arcpy import env arcpy.env.overwriteOutput=True from arcpy.sa import * arcpy.CheckOutExtension("Spatial") # Variables OutLocation = arcpy.GetParameterAsText(0) Raster1 = arcpy.Raster(arcpy.GetParameterAsText(1)) Raster2 = arcpy.Raster(arcpy.GetParameterAsText(2)) # Calculation and save CDF = Raster1 * Raster2 OutFile = "CDF" FullOutFile = OutLocation + OutFile # For example: r"Q:\LFP_GLOBAL\OUTPUT.gdb\CDF" CDF.save(FullOutFile)
Solved! Go to Solution.
FullOutFile = OutLocation + "\\" + OutFile
FullOutFile = OutLocation + "\\" + OutFile