Solved! Go to Solution.
Con("Rainfall"<456, 0.3*"Rainfall", Con(("Rainfall">456) & ("Rainfall"<700), 0.46*("Rainfall"-159), 0.36*("Rainfall"-285)))
Jamal,
Rasters are not the same as a point, polyline or polygon feature class. I don't think you can get an attribute table on a non-integer raster and you can't add another field to a raster attribute table.
You should be able to use the raster calculator to do what you want. You would use the CON() function in raster calculator instead of the IF statement. This will result in a new raster with the values you are calculating.
Con("Rainfall"<456, 0.3*"Rainfall", Con(("Rainfall">456) & ("Rainfall"<700), 0.46*("Rainfall"-159), 0.36*("Rainfall"-285)))
Jamal,
After some trial and error, I found that you need to enclose the expressions on either side of the "&" with "()"s. The equestion below worked for me:Con("Rainfall"<456, 0.3*"Rainfall", Con(("Rainfall">456) & ("Rainfall"<700), 0.46*("Rainfall"-159), 0.36*("Rainfall"-285)))
Also, you had wrapped the second Con() with "()" and I took that out.
You may want to explore the greater or equals to ">=" and less than or equal to "<=" test so your don't miss something that hits values right on.
Hope this helps.