<?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 Re: Raster calculator &amp;quot;if, then, else&amp;quot; statement in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749293#M10833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're working with a raster with an attribute table (and it sounds like you are), a better tool might be the Field Calculator, which can incorporate python scripts to process if/else statements. Here's some of the documentation on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fundamentals of Field Calculations -&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/fundamentals-of-field-calculations.htm#GUID-87E5C668-79E0-40F3-82A0-4A7D6AE8DB13"&gt;http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/fundamentals-of-field-calculations.htm#GUID-87E5C668-79E0-40F3-82A0-4A7D6AE8DB13&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Calculate Field -&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/calculate-field.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/calculate-field.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there's a way to do this with the Con tool, but maybe others here will have other ideas!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Lauren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jun 2019 15:08:46 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-06-03T15:08:46Z</dc:date>
    <item>
      <title>Raster calculator "if, then, else" statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749292#M10832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if in &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/raster-calculator.htm"&gt;Raster Calculator&lt;/A&gt; it is possible to build more complex condition than with the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/conditional-evaluation-with-con.htm"&gt;Con&lt;/A&gt; tool?&lt;/P&gt;&lt;P&gt;I would like to create a new column in my attribute table and evaluate the values in this column based on few different columns, e.g:&lt;/P&gt;&lt;P&gt;if value in column A &amp;gt; 50 give me A, then&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if value in column&amp;nbsp;B &amp;gt; 50 give me&amp;nbsp;B, then&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if value in column&amp;nbsp;C &amp;gt; 50 give me&amp;nbsp;C, then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if value in column&amp;nbsp;D &amp;gt; 50 give me&amp;nbsp;D, else &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;give me E &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea how to do this as one statement in Raster Calculator? Thanks in advance for your answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 06:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749292#M10832</guid>
      <dc:creator>KK2</dc:creator>
      <dc:date>2019-06-03T06:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator "if, then, else" statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749293#M10833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're working with a raster with an attribute table (and it sounds like you are), a better tool might be the Field Calculator, which can incorporate python scripts to process if/else statements. Here's some of the documentation on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fundamentals of Field Calculations -&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/fundamentals-of-field-calculations.htm#GUID-87E5C668-79E0-40F3-82A0-4A7D6AE8DB13"&gt;http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/fundamentals-of-field-calculations.htm#GUID-87E5C668-79E0-40F3-82A0-4A7D6AE8DB13&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Calculate Field -&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/calculate-field.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/calculate-field.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there's a way to do this with the Con tool, but maybe others here will have other ideas!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Lauren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 15:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749293#M10833</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-03T15:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator "if, then, else" statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749294#M10834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be better off using the Reclassify tool.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/understanding-reclassification.htm"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/understanding-reclassification.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 16:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749294#M10834</guid>
      <dc:creator>KevinMayall</dc:creator>
      <dc:date>2019-07-04T16:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator "if, then, else" statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749295#M10835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reclassify won't work for this as it reclassifies the data in a single value field.&lt;/P&gt;&lt;P&gt;I agree with Lauren that working with Calculate Field in the raster table may be (much) more efficient, but I'm wondering how you got such a "fat" raster table. If&amp;nbsp;the fat table was output from the Combine tool,&amp;nbsp;you may want to skip the Combine tool and do this instead using the five input rasters:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"RasterA"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"RasterA"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
    Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"RasterB"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"RasterB"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
    Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"RasterC"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"RasterC"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"RasterD"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"RasterD"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
    &lt;SPAN class="string token"&gt;"RasterE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 ‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:50:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-quot-if-then-else-quot-statement/m-p/749295#M10835</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T07:50:34Z</dc:date>
    </item>
  </channel>
</rss>

