<?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 how to calculate overlapping rasters in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-calculate-overlapping-rasters/m-p/111014#M1551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was a similar question 3 years ago, but still I have some difficulties executing a code in Raster Calculator. So, I have 2 rasters :&lt;BR /&gt;1. "Seal Density", with 5 classes: 0, 1, 2, 3, 4&lt;BR /&gt;2. "Fishing Intensity", with 10 classes: 0, 3, 6, 11, 19, 28, 38, 48, 59, 73&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I arbitarily labelled the classes myself based on the ranges (provided by Kernel Density analysis). In order to identify overlapping pixels, I ran the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m" ==&amp;nbsp; 0), 00, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m" == 3), 03, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m" == 6), 06, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 11), 011, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 19), 019, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 28), 028, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 38), 038, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 48), 048, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 59), 059, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 73), 073, Con(&lt;SPAN&gt;("KernelD_seal_all" == 1) &amp;amp;&amp;nbsp;("LineDen_Fish_ALL_100m" ==&amp;nbsp; 3) ..... and so on with all combinations.&lt;BR /&gt;&lt;BR /&gt;It's very lengthy and I don't get the 50 combinations (50 classes?) I expect, rather I only get a "zero" class.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2019 15:32:45 GMT</pubDate>
    <dc:creator>GeorgiosKerametsidis</dc:creator>
    <dc:date>2019-09-26T15:32:45Z</dc:date>
    <item>
      <title>how to calculate overlapping rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-calculate-overlapping-rasters/m-p/111014#M1551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was a similar question 3 years ago, but still I have some difficulties executing a code in Raster Calculator. So, I have 2 rasters :&lt;BR /&gt;1. "Seal Density", with 5 classes: 0, 1, 2, 3, 4&lt;BR /&gt;2. "Fishing Intensity", with 10 classes: 0, 3, 6, 11, 19, 28, 38, 48, 59, 73&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I arbitarily labelled the classes myself based on the ranges (provided by Kernel Density analysis). In order to identify overlapping pixels, I ran the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m" ==&amp;nbsp; 0), 00, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m" == 3), 03, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m" == 6), 06, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 11), 011, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 19), 019, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 28), 028, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 38), 038, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 48), 048, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 59), 059, (Con(("KernelD_seal_all" == 0) &amp;amp; ("LineDen_Fish_ALL_100m"== 73), 073, Con(&lt;SPAN&gt;("KernelD_seal_all" == 1) &amp;amp;&amp;nbsp;("LineDen_Fish_ALL_100m" ==&amp;nbsp; 3) ..... and so on with all combinations.&lt;BR /&gt;&lt;BR /&gt;It's very lengthy and I don't get the 50 combinations (50 classes?) I expect, rather I only get a "zero" class.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:32:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-calculate-overlapping-rasters/m-p/111014#M1551</guid>
      <dc:creator>GeorgiosKerametsidis</dc:creator>
      <dc:date>2019-09-26T15:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate overlapping rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-calculate-overlapping-rasters/m-p/111015#M1552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking to do this using raster calculator, you can multiply one of your rasters with 100 and then add them.&amp;nbsp;&lt;BR /&gt;should look something like &lt;STRONG&gt;(&lt;SPAN style="background-color: #ffffff;"&gt;"Seal Density" * 100) +&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;"Fishing Intensity" .&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Otherwise, if you are&amp;nbsp;comfortable with python or R you can simply iterate with a for loop into all the values and regenerate your new raster with the concatenated values.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Oct 2019 16:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-calculate-overlapping-rasters/m-p/111015#M1552</guid>
      <dc:creator>SambhaviJoshi</dc:creator>
      <dc:date>2019-10-13T16:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate overlapping rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-calculate-overlapping-rasters/m-p/111016#M1553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;You could also use the Combine tool and add and calculate a new field in the resulting raster attribute table. The output of Combine gives you every unique combination of inputs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Raster outputs can only be&amp;nbsp;numbers, but fields can be text. So if you&amp;nbsp;Combine&amp;nbsp;integer grids X1 and X2 you'll have Long fields X1 and X2 in the output table.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;You could then add a text format field and calculate it with the Calculate Field tool (using Python syntax) with an expression like:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"{:0&amp;gt;3d}{:0&amp;gt;3d}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!X1!&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;!X2!&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 00:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-calculate-overlapping-rasters/m-p/111016#M1553</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-10-14T00:24:25Z</dc:date>
    </item>
  </channel>
</rss>

