<?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 in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342936#M4799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try a Con statement like thois:&lt;/P&gt;&lt;P&gt;Con("AlnusSpp" + "BetulaSpp" &amp;gt; 20, 1, 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2018 14:26:31 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2018-01-29T14:26:31Z</dc:date>
    <item>
      <title>Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342935#M4798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is it possible to combine 2 rasters with the raster calculator defining the value of the rasters? It should look more or less like this but at the moment i'm getting an error for the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/395122_dfdf.PNG" style="width: 620px; height: 319px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 14:22:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342935#M4798</guid>
      <dc:creator>FelixSchwarz</dc:creator>
      <dc:date>2018-01-29T14:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342936#M4799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try a Con statement like thois:&lt;/P&gt;&lt;P&gt;Con("AlnusSpp" + "BetulaSpp" &amp;gt; 20, 1, 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 14:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342936#M4799</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-01-29T14:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342937#M4800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick answer. This one works but I try to retain the exact values from the data and not the define them&lt;/P&gt;&lt;P&gt;as 1 or 0, because the exact values are important for further procedures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/395163_fs.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342937#M4800</guid>
      <dc:creator>FelixSchwarz</dc:creator>
      <dc:date>2018-01-29T16:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342938#M4801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you have your indicator array (the 1's) you use that array/raster to extract all the locations where a 1 is found. &amp;nbsp;&lt;/P&gt;&lt;P&gt;In essence 1 indicates the locations where the sum of the two rasters is &amp;gt; 20.&amp;nbsp; Use the 1's to extract the values. from the 2 input rasters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:39:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342938#M4801</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-29T16:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342939#M4802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what Dan is explaining, you could use:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Con("AlnusSpp" + "BetulaSpp" &amp;gt; 20, "AlnusSpp")&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;... in case you want to create a new raster with the original values of&amp;nbsp;&lt;SPAN&gt;"AlnusSpp"&amp;nbsp;where the sum of&amp;nbsp;"AlnusSpp"&amp;nbsp;and&amp;nbsp;"BetulaSpp" is higher than 20 (rest of the pixels in this case will be assigned NoData)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;And you can use:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Con("AlnusSpp" + "BetulaSpp" &amp;gt; 20,"BetulaSpp")&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;... to create the same type of raster but now with the original values of&amp;nbsp;"BetulaSpp" when the sum of the two raster is higher than 20 (rest of cells will be NoData)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Or you can use something like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Con("AlnusSpp" + "BetulaSpp" &amp;gt; 20,"AlnusSpp" + "BetulaSpp")&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... when you want to create a raster with the sum of the values of the two raster when the sum is higher than 20 (rest of cells will be NoData)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 17:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342939#M4802</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-01-29T17:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342940#M4803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last one is exactly the one I needed, thank you very much!&lt;/P&gt;&lt;P&gt;One last question: Overall I got 9 species and want to create a raster where at least 2 or more of the species with &amp;gt;20 are displayed, is there maybe one expression for it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is it possible to&amp;nbsp; combine expressions maybe like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;CODE&gt;Con("AlnusSpp" + "BetulaSpp" &amp;gt; 20,"AlnusSpp" + "BetulaSpp") OR 
&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;Con("AlnusSpp" + "CarpinusSpp" &amp;gt; 20,"AlnusSpp" + "CarpinusSpp")&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342940#M4803</guid>
      <dc:creator>FelixSchwarz</dc:creator>
      <dc:date>2021-12-11T16:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342941#M4804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&amp;nbsp; You would have script a solution or try modelbuilder (which has its own issues)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 10:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342941#M4804</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-30T10:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342942#M4805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Dan mentioned, you will need a script to accomplish this. Find below an example of what you could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# load modules&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# settings&lt;/SPAN&gt;
ws_species &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'path to your folder of fgdb workspace'&lt;/SPAN&gt;
species &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"BetulaSpp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"CarpinusSpp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"other species"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
specie_compare &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AlnusSpp"&lt;/SPAN&gt;
output_postfix &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Cmp'&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# check out the SA extension&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CheckOutExtension&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Spatial"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# create raster object from comparison raster AlnusSpp&lt;/SPAN&gt;
compare_ras &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ws_species&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; specie_compare&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# loop through species&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; specie &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; ws_species&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; specie_ras &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ws_species&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; specie&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; out_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ws_species&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; specie &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; output_postfix&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# calculate raster and store result&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;compare_ras &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; specie_ras &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; compare_ras &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; specie_ras&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_path&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;/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;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;/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;P&gt;&lt;/P&gt;&lt;P&gt;This script will loop through species based on a list defined on line 8 and create the output raster for each comparison. Output name will be specie name with "Cmp" at the end (see output_postfix on line 10). It assumes that all rasters are stored in the same workspace (folder or fgdb) as defined on line 7.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342942#M4805</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T16:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342943#M4806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could&amp;nbsp;try&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;SetNull&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;(&lt;SPAN style="background-color: #ffffff;"&gt;("AlnusSpp" + "BetulaSpp" )&amp;lt;= 20&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;SPAN style="background-color: #ffffff;"&gt;("AlnusSpp" + "BetulaSpp")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 15:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342943#M4806</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2018-01-30T15:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342944#M4807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the script, I will try it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general I was trying to create a map that shows a 'Mixed Forest' containing the&amp;nbsp;particular species. So there have to be at least 2 species ( or more -&amp;nbsp; with &amp;gt;20) in one grid. Isn't there another solution&amp;nbsp;or tool for this one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 10:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342944#M4807</guid>
      <dc:creator>FelixSchwarz</dc:creator>
      <dc:date>2018-02-01T10:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342945#M4808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are multiple conditions Felix, to handle them all it requires you break things down into steps.&amp;nbsp; separating mixed forest is one, With one species, that can be handled by a single Con statement.&amp;nbsp; It is the multiple conditions that necessitate the many steps. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence Xander's last lines in his script looping through the species and doing the Con&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 11:31:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342945#M4808</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-01T11:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342946#M4809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to what&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;&amp;nbsp;mentioned, in case a "Mixed Forest" requires the existence of more than 1 species and a certain value (&amp;gt;20, is this % coverage?) a situation o 0% of one species and 30% of another will yield a value &amp;gt; 20, but does not&amp;nbsp;mean that there are actually two or more species.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from validating&amp;nbsp;"AlnusSpp"&amp;nbsp;+&amp;nbsp; "BetulaSpp" and &lt;SPAN&gt;"AlnusSpp"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;"CarpinusSpp", the script will not validate&amp;nbsp;&lt;SPAN&gt;"BetulaSpp"&amp;nbsp;+&lt;SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"CarpinusSpp" nor&amp;nbsp;"AlnusSpp"&amp;nbsp;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; "BetulaSpp"&amp;nbsp;+&lt;SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"CarpinusSpp", when this may also yield a value &amp;gt; 20 and could represent mixed forest.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;It could be better to create for instance a binary raster per species that represents its existence and sum those rasters. Those pixels that have a value of 2 or higher&amp;nbsp;will have more than 1 species. Use a sum of all original rasters to validate the condition &amp;gt; 20.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 12:05:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/342946#M4809</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-01T12:05:13Z</dc:date>
    </item>
  </channel>
</rss>

