import arcpy
from arcpy import env
from arcpy.ia import *
env.workspace = "C:/data"
# Run WeightedSum
outWeightedSum = WeightedSum("snow VALUE 0.25;land VALUE 0.25;soil VALUE 0.5")
outWeightedSum.save("C:/output/outwsum")
# Name: WeightedSum_Ex_02.py
# Description: Overlays several rasters multiplying each by their given
# weight and summing them together.
# Import system modules
import arcpy
from arcpy import env
from arcpy.ia import *
# Set environment settings
env.workspace = "C:/iapyexamples/data"
wstable = "c:\\test\\Clip_dem.tif VALUE 50;c:\\test\\Clip_aspect.tif VALUE 50"
# Run WeightedSum
outWeightedSum = WeightedSum(wstable)
# Save the output
outWeightedSum.save("C:/iapyexamples/output/weightsumout")