<?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 Identify regions in common on two rasters in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457689#M6556</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;Am new here so excuse me if my question is naive! I have a terrain-filter raster in pink and another raster filter in purple (shown overlying the first). I am only interested in the areas where the pink and purple are connected.&amp;nbsp; In other words, I want to remove all the purple areas that are not associated with (adjacent to or overlayed) the pink regions, leaving just the areas where the two filters touch.&amp;nbsp; I then want to merge them together to make a filter combining both (I do not need to separate the pink from the purple - I just want to identify regions where the two filters are connected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;IMG alt="Pink filter" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/499649_Cerro_Grande_VLS_30m_AM.jpg" /&gt;&lt;IMG alt="Pink filter overlain by purple filter" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/499650_Cerro_Grande_VLS2_30m_AM.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2020 02:02:35 GMT</pubDate>
    <dc:creator>RachelBadlan</dc:creator>
    <dc:date>2020-07-09T02:02:35Z</dc:date>
    <item>
      <title>Identify regions in common on two rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457689#M6556</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;Am new here so excuse me if my question is naive! I have a terrain-filter raster in pink and another raster filter in purple (shown overlying the first). I am only interested in the areas where the pink and purple are connected.&amp;nbsp; In other words, I want to remove all the purple areas that are not associated with (adjacent to or overlayed) the pink regions, leaving just the areas where the two filters touch.&amp;nbsp; I then want to merge them together to make a filter combining both (I do not need to separate the pink from the purple - I just want to identify regions where the two filters are connected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;IMG alt="Pink filter" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/499649_Cerro_Grande_VLS_30m_AM.jpg" /&gt;&lt;IMG alt="Pink filter overlain by purple filter" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/499650_Cerro_Grande_VLS2_30m_AM.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 02:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457689#M6556</guid>
      <dc:creator>RachelBadlan</dc:creator>
      <dc:date>2020-07-09T02:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Identify regions in common on two rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457690#M6557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;several ways, but Combine will give you some flexibility&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/combine.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/combine.htm"&gt;Combine—Help | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will produce the unique combinations of the inputs, and you can query the output accordingly&lt;/P&gt;&lt;P&gt;purple&amp;nbsp; pink&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodata&lt;/P&gt;&lt;P&gt;nodata&amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;nodata&amp;nbsp; &amp;nbsp;nodata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you are interested in the first two classes from the resultant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 02:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457690#M6557</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-09T02:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Identify regions in common on two rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457691#M6558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Have used the combine tool (below), but how do I remove the values of '3' (which represent areas of light purple) that are isolated? i.e. are not next to a '2' or a '4'? (See pic below for example of areas to remove and keep)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/499651_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/499653_pic.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 03:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457691#M6558</guid>
      <dc:creator>RachelBadlan</dc:creator>
      <dc:date>2020-07-09T03:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Identify regions in common on two rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457692#M6559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/402864"&gt;Rachel&lt;/A&gt;‌ ... when you mean 'adjacent' to you mean within 1 cell? 2 cells? adjecent-ish?&lt;/P&gt;&lt;P&gt;In that case I would use the Expand tool on the 'pink' and effectively buffer them, then use combine as before except exclude those cases that are denoted as&amp;nbsp; 1, nodata from above.&lt;/P&gt;&lt;P&gt;I think you will have corner cases in any event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addendum&lt;/P&gt;&lt;P&gt;I would also have a look at the Generalization toolset to prepare input rasters first.&lt;/P&gt;&lt;P&gt;Some combination of the tools in there and a combine (perhaps) might get you close&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/how-aggregate-works.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/how-aggregate-works.htm"&gt;How Aggregate works—Help | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/boundary-clean.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/boundary-clean.htm"&gt;Boundary Clean—Help | Documentation&lt;/A&gt;&amp;nbsp; did you look at this?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/majority-filter.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/majority-filter.htm"&gt;Majority Filter—Help | Documentation&lt;/A&gt;&amp;nbsp; did you try it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about a focal variety?&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/focal-statistics.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/focal-statistics.htm"&gt;Focal Statistics—Help | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list goes on, some things working in some areas and not in others&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 06:03:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457692#M6559</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-09T06:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Identify regions in common on two rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457693#M6560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brought up an old thread perhaps closely related&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/219411-how-to-count-the-adjacent-cells-that-have-a-different-value-in-a-raster-dataset"&gt;https://community.esri.com/thread/219411-how-to-count-the-adjacent-cells-that-have-a-different-value-in-a-raster-dataset&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 06:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457693#M6560</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-09T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Identify regions in common on two rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457694#M6561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a dumb question, this is a tricky raster processing puzzle. Fortunately, the Raster Calculator&amp;nbsp; makes it fairly easy to combine tools to get your answer. Map Algebra&amp;nbsp;is cool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A key part of this is the use of the Con (conditional) tool to make choices about what cell values you want.&amp;nbsp; Note I'm assuming the cells you don't want are zero (not NoData), this is based on your second screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Make a mask&amp;nbsp;of combined grids where purple==1 and pink==2.&amp;nbsp; Where pink and purple cells overlap, you get a value of 1, if neither are &amp;gt;0, NoData.&lt;/P&gt;&lt;P&gt;If using raster calculator tool, make the output cgroup and start the expression AFTER the = sign.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;cgroup &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"pink.tif"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&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;"blue.tif"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. Convert all data cells to 1 (cgroup &amp;gt; 0 creates a grid that has values of 1 and nodata).&lt;/P&gt;&lt;P&gt;Make zones (unique cell value) for each continuous group of "data" cells&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;mgroup &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; RegionGroup&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cgroup &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3. Select all cells that are in a grouped region (zone) with more than one of the two cgroup values, extract cgroup values&amp;nbsp;from those zones.&lt;/P&gt;&lt;P&gt;Pick one of the following depending on what you want the output to look like.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;mgroupv &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ZonalStatistics&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mgroup&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"VALUE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; cgroup&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"VARIETY"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The above returns cells with values of 1 and NoData. You can use Con one last time to convert your NoData to zero if you want (like your input rasters)&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;mgroupv0 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IsNull&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mgroupv&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; mgroupv&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>Wed, 15 Jul 2020 04:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/identify-regions-in-common-on-two-rasters/m-p/457694#M6561</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2020-07-15T04:24:02Z</dc:date>
    </item>
  </channel>
</rss>

