Model builder use logical funtion if, else, them

3078
1
07-18-2013 01:39 PM
Labels (1)
GuillermoSantos
New Contributor
Srs. I dont have experience with logical tools if, them, else aplication in raster map. I have to build a water model balance, for example:
Raster rainfall ??? 200 and Raster rainfall ??? 800 (Raster rainfall + soil humity, 0)

as placing the expression in model builder, the raster map has a different values of rainfall
Thanks for comments
Tags (2)
0 Kudos
1 Reply
MattMead
New Contributor III
Raster calc/map algebra uses the "con(" function to handle such statements.

I havent tried using it in the model builder yet, but your statement:

"Raster rainfall �?� 200 and Raster rainfall �?� 800 (Raster rainfall + soil humity, 0)"

should be:
Con(Rainfall >= 200 & Rainfall <= 800,Rainfall + Soil, 0)

make sure to have a space between the +,-,= etc and your rasters and numbers or else it wont work.
0 Kudos