<?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: Majority Filter algorithm when majority of neighbors have NoData in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/majority-filter-algorithm-when-majority-of/m-p/717187#M10420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm trying to understand how the Majority Filter tool works around the edges and in sparse areas, where most of the neighboring cells have NoData value.&amp;nbsp; I have my filter set to use EIGHT neighbors, with replacement on MAJORITY.&amp;nbsp; If only 1 of the 8 neighbors has a value, the cell is replaced by NoData.&amp;nbsp; However, if 2 or 3 of the cell's neighbors have values (and all the same value), and the remaining 5 or 6 neighbors have NoData, then the cell seems to be replaced by the existing neighbor values.&amp;nbsp; There is obviously some nuance in the algorithm that's not clear to me from the online documentation.&amp;nbsp; Can someone explain this?&lt;BR /&gt;&lt;BR /&gt;FWIW, I encountered this going thru the site selection tutorial that comes with the Spatial Analyst package.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I kind of agree that one does not make a majority. This behavior is documented here, for a related tool: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/How_Focal_Statistics_works/009z000000r7000000/"&gt;How Focal Statistics Works:&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When there is more than one majority value within a neighborhood, the processing cell location will receive NoData on the output.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your use case, it may make sense to convert the null values to a NoData cell code first. For example, in Raster Calculator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;MajorityFilter(Con(IsNull("inraster"), 9999, "inraster"), "MAJORITY")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get a majority NoData, you you could then set those back to NoData:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;SetNull("filt_raster" == 9999, "filt_raster")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2014 22:31:06 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2014-04-30T22:31:06Z</dc:date>
    <item>
      <title>Majority Filter algorithm when majority of neighbors have NoData</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/majority-filter-algorithm-when-majority-of/m-p/717186#M10419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to understand how the Majority Filter tool works around the edges and in sparse areas, where most of the neighboring cells have NoData value.&amp;nbsp; I have my filter set to use EIGHT neighbors, with replacement on MAJORITY.&amp;nbsp; If only 1 of the 8 neighbors has a value, the cell is replaced by NoData.&amp;nbsp; However, if 2 or 3 of the cell's neighbors have values (and all the same value), and the remaining 5 or 6 neighbors have NoData, then the cell seems to be replaced by the existing neighbor values.&amp;nbsp; There is obviously some nuance in the algorithm that's not clear to me from the online documentation.&amp;nbsp; Can someone explain this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FWIW, I encountered this going thru the site selection tutorial that comes with the Spatial Analyst package.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 21:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/majority-filter-algorithm-when-majority-of/m-p/717186#M10419</guid>
      <dc:creator>MarilynDaum</dc:creator>
      <dc:date>2014-04-30T21:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Majority Filter algorithm when majority of neighbors have NoData</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/majority-filter-algorithm-when-majority-of/m-p/717187#M10420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm trying to understand how the Majority Filter tool works around the edges and in sparse areas, where most of the neighboring cells have NoData value.&amp;nbsp; I have my filter set to use EIGHT neighbors, with replacement on MAJORITY.&amp;nbsp; If only 1 of the 8 neighbors has a value, the cell is replaced by NoData.&amp;nbsp; However, if 2 or 3 of the cell's neighbors have values (and all the same value), and the remaining 5 or 6 neighbors have NoData, then the cell seems to be replaced by the existing neighbor values.&amp;nbsp; There is obviously some nuance in the algorithm that's not clear to me from the online documentation.&amp;nbsp; Can someone explain this?&lt;BR /&gt;&lt;BR /&gt;FWIW, I encountered this going thru the site selection tutorial that comes with the Spatial Analyst package.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I kind of agree that one does not make a majority. This behavior is documented here, for a related tool: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/How_Focal_Statistics_works/009z000000r7000000/"&gt;How Focal Statistics Works:&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When there is more than one majority value within a neighborhood, the processing cell location will receive NoData on the output.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your use case, it may make sense to convert the null values to a NoData cell code first. For example, in Raster Calculator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;MajorityFilter(Con(IsNull("inraster"), 9999, "inraster"), "MAJORITY")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get a majority NoData, you you could then set those back to NoData:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;SetNull("filt_raster" == 9999, "filt_raster")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 22:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/majority-filter-algorithm-when-majority-of/m-p/717187#M10420</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-04-30T22:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Majority Filter algorithm when majority of neighbors have NoData</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/majority-filter-algorithm-when-majority-of/m-p/717188#M10421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; After considering your response and looking into it more, I figured out my problem; it's a matter of perspective, and reading the fine print: NoData is a value, and replacement occurs only if the cells are contiguous.&amp;nbsp; Beginner's error, I think.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 15:12:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/majority-filter-algorithm-when-majority-of/m-p/717188#M10421</guid>
      <dc:creator>MarilynDaum</dc:creator>
      <dc:date>2014-05-01T15:12:31Z</dc:date>
    </item>
  </channel>
</rss>

