<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IF, THEN, ELSE Raster Calculations in Model Builder. in 3D Questions</title>
    <link>https://community.esri.com/t5/3d-questions/if-then-else-raster-calculations-in-model-builder/m-p/146754#M898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&amp;nbsp; I'm new to Arc and have a question regarding if/then/else statements within model builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post would be more appropriate in another forum, please let me know and I'll move it there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently using model builder to iterate calculations on multiple DEMs that produce elevation shapefiles based on those respective DEMs.&amp;nbsp; However, the model bombs on the first iteration because it encounters a negative value.&amp;nbsp; The calculation in question is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "%Raster%" - 12&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there is no way to make the model skip a step, then perhaps the if/then/else statement could&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be used to add and arbitrary value (ex: 200) to the raster.&amp;nbsp; This would produce a shapefile that is noticeably too large and could be culled at the end of the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas if either of these two options is viable, and if so, what the if/then/else statement should look like?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2011 12:22:25 GMT</pubDate>
    <dc:creator>RobertMaynard</dc:creator>
    <dc:date>2011-08-10T12:22:25Z</dc:date>
    <item>
      <title>IF, THEN, ELSE Raster Calculations in Model Builder.</title>
      <link>https://community.esri.com/t5/3d-questions/if-then-else-raster-calculations-in-model-builder/m-p/146754#M898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&amp;nbsp; I'm new to Arc and have a question regarding if/then/else statements within model builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post would be more appropriate in another forum, please let me know and I'll move it there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently using model builder to iterate calculations on multiple DEMs that produce elevation shapefiles based on those respective DEMs.&amp;nbsp; However, the model bombs on the first iteration because it encounters a negative value.&amp;nbsp; The calculation in question is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "%Raster%" - 12&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there is no way to make the model skip a step, then perhaps the if/then/else statement could&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be used to add and arbitrary value (ex: 200) to the raster.&amp;nbsp; This would produce a shapefile that is noticeably too large and could be culled at the end of the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas if either of these two options is viable, and if so, what the if/then/else statement should look like?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 12:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/if-then-else-raster-calculations-in-model-builder/m-p/146754#M898</guid>
      <dc:creator>RobertMaynard</dc:creator>
      <dc:date>2011-08-10T12:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: IF, THEN, ELSE Raster Calculations in Model Builder.</title>
      <link>https://community.esri.com/t5/3d-questions/if-then-else-raster-calculations-in-model-builder/m-p/146755#M899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check &lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/06/06/ModelBuilderIfThenElse1.aspx"&gt;If-then-else part 1&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/06/06/ModelBuilderIfThenElse2.aspx"&gt;If-then-else part 2&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Any ModelBuilder questions belong in the Geoprocessing forum.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 17:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/if-then-else-raster-calculations-in-model-builder/m-p/146755#M899</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2011-08-10T17:01:15Z</dc:date>
    </item>
  </channel>
</rss>

