<?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: Remove overlapping cells between two grids in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30550#M391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could do this with Con or SetNull depending upon what you want.&amp;nbsp; Both are documented in SA's help file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2012 10:55:30 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2012-06-04T10:55:30Z</dc:date>
    <item>
      <title>Remove overlapping cells between two grids</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30549#M390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I have two grids (A and B). I would like to remove from GridA any cells that have a value in GridB.&amp;nbsp; Grids A and B occupy the same space but measure different things.&amp;nbsp; What is the best way to perform this operation?&amp;nbsp; I was not having success googling the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you kindly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 01:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30549#M390</guid>
      <dc:creator>MichaelJust</dc:creator>
      <dc:date>2012-06-04T01:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove overlapping cells between two grids</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30550#M391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could do this with Con or SetNull depending upon what you want.&amp;nbsp; Both are documented in SA's help file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 10:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30550#M391</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-06-04T10:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Remove overlapping cells between two grids</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30551#M392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could do this with Con or SetNull depending upon what you want.&amp;nbsp; Both are documented in SA's help file.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Con ("Grid B" &amp;lt; 0, 0, "Grid A"): This means where Grid B is less than zero use zero, otherwise use Grid A. But this would require an additional step of making the values "null".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, can I use two "InGrids" with SetNull?&amp;nbsp; For example, SetNull("Grid B", "Grid A").&amp;nbsp; Would this equate as set null all values of Grid B and use only non-overlapping values of Grid A.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 23:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30551#M392</guid>
      <dc:creator>MichaelJust</dc:creator>
      <dc:date>2012-06-04T23:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Remove overlapping cells between two grids</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30552#M393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In SetNull you can apply a condition, if it is true, then it will be null otherwise, you can specify what you want it to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z00000007000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z00000007000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 01:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30552#M393</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-06-05T01:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove overlapping cells between two grids</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30553#M394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you both:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"!IsNull" is new to me, specifically the "!"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 00:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30553#M394</guid>
      <dc:creator>MichaelJust</dc:creator>
      <dc:date>2012-06-06T00:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove overlapping cells between two grids</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30554#M395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to point out there is no one answer to your question, and how Map Algebra is used is often a choice of style...&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;I prefer using the "not" operator.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You can also use the output of IsNull explicitly, as it returns 1/0 (true/false) values.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I'm a big fan of the Con tool because it is so flexible, especially when combined with IsNull.&amp;nbsp; (In the expression below, if you leave off the third argument, any cell evaluating to False returns NoData in the output.)&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;So, these expressions are all equivalent:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;SetNull(not IsNull("B"), "A")
SetNull(IsNull("B") == 0,"A")
Con(IsNull("B"),"A")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/remove-overlapping-cells-between-two-grids/m-p/30554#M395</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T21:14:01Z</dc:date>
    </item>
  </channel>
</rss>

