Select to view content in your preferred language

IF, THEN, ELSE Raster Calculations in Model Builder.

581
1
08-10-2011 05:22 AM
RobertMaynard
Emerging Contributor
Hello.  I'm new to Arc and have a question regarding if/then/else statements within model builder.

If this post would be more appropriate in another forum, please let me know and I'll move it there.

I'm currently using model builder to iterate calculations on multiple DEMs that produce elevation shapefiles based on those respective DEMs.  However, the model bombs on the first iteration because it encounters a negative value.  The calculation in question is:

"%Raster%" - 12

What I'd like to do is add an if/then/else statement to determine if the value is less than 0 and, if so, skip to the next step in the model. 

If there is no way to make the model skip a step, then perhaps the if/then/else statement could
be used to add and arbitrary value (ex: 200) to the raster.  This would produce a shapefile that is noticeably too large and could be culled at the end of the process.

Any ideas if either of these two options is viable, and if so, what the if/then/else statement should look like?

Thanks in advance.
Tags (1)
0 Kudos
1 Reply
ShitijMehta
Esri Regular Contributor
Check

and

Any ModelBuilder questions belong in the Geoprocessing forum.
0 Kudos