I'm getting error 010531: sum of % influence weights must be equal to 100, and I really don't know why, I have tried multiple ways to make it worked but nothing, to my eyes it seems correct, but it's not working.
this is the code, please take a look and let me know what do you see.
try:
myWOTable = WOTable([[ras4, 12, "LANDUSE", "('Brush/transitional' 5; 'Water' 'Restricted'; 'Barren land' 10; 'Built up' 3; 'Agriculture' 9; 'Forest' 4; 'Wetlands' 'Restricted'; 'NODATA' 'NODATA')"],
[reclass_slope_1, 13, "VALUE", "(1 'Restricted'; 2 'Restricted'; 3 'Restricted'; 4 4; 5 5; 6 6; 7 7; 8 8; 9 9; 10 10; 'NODATA' 'NODATA')"],
[reclass_eucD_rec_sites, 50, "VALUE", "(1 1; 2 2; 3 3; 4 4; 5 5; 6 6; 7 7; 8 8; 9 9; 10 10; 'NODATA' 'NODATA')"],
[reclass_eucD_schools, 25, "VALUE", "(1 1; 2 2; 3 3; 4 4; 5 5; 6 6; 7 7; 8 8; 9 9; 10 10; 'NODATA' 'NODATA')"]],
[eva_scl])
out_WeightedOverlay = WeightedOverlay(myWOTable)
out_WeightedOverlay.save(weighted_suitable_areas)
except:
print(arcpy.GetMessages())
Error msn:
Start Time: Sat Dec 22 23:46:33 2018
Failed to execute. Parameters are not valid.
ERROR 010531: The sum of % Influence Weights must equal 100.
Failed to execute (WeightedOverlay).
Failed at Sat Dec 22 23:46:34 2018 (Elapsed Time: 0.27 seconds)
Python Developer Communities GIS Developers Geo Developers