<?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: Can someone explain how Majority Resample works for rasters? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660366#M21986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, the Majority option will use a 4 by 4 moving filter window to process each pixel.&amp;nbsp; This usually means the 16 nearest pixels.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2020 21:43:47 GMT</pubDate>
    <dc:creator>SimonWoo</dc:creator>
    <dc:date>2020-02-18T21:43:47Z</dc:date>
    <item>
      <title>Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660360#M21980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I am trying to resample a 10-meter raster to a 30-meter raster. I need to use the&amp;nbsp;&lt;STRONG&gt;majority&amp;nbsp;&lt;/STRONG&gt;value that falls within those 30-meter grid cells. However, as I am QA'ing the outputs, it looks like it does not always pick the majority value. Now I am confused on how the majority function actually works... In my example below, there are 5 cells with a value of 110, however after I use majority resample, it picks the 174 value instead? Why is that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation on how it decides what value to use would be invaluable to me! Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="482545" alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/482545_raster resample.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 19:44:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660360#M21980</guid>
      <dc:creator>MichelleTanner</dc:creator>
      <dc:date>2020-02-18T19:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660361#M21981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you widen your window to encompass the nearest 16?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4c4c4c; background-color: #ffffff; font-weight: bold;"&gt;Majority&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;—Calculates pixel value using the majority pixel value in the 16 nearest pixels. NoData pixels will remain unchanged in the output raster dataset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/imagery/resample-function.htm" title="https://pro.arcgis.com/en/pro-app/help/data/imagery/resample-function.htm"&gt;Resample function—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 19:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660361#M21981</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-18T19:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660362#M21982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a zoomed out extent. The black outlines are the 30-meter grid cells. &lt;IMG __jive_id="482568" alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/482568_raster resample v2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:05:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660362#M21982</guid>
      <dc:creator>MichelleTanner</dc:creator>
      <dc:date>2020-02-18T20:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660363#M21983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why does it use the nearest 16 cells? shouldn't it be dependent on the input and output cell sizes? I don't think I understand that reasoning.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660363#M21983</guid>
      <dc:creator>MichelleTanner</dc:creator>
      <dc:date>2020-02-18T20:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660364#M21984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michelle, rampling can become quite confusing. I believe the function you're using is focal, ie it calculates from a moving window across all of your cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe nlock statistics will suit your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/how-block-statistics-works.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/how-block-statistics-works.htm"&gt;How Block Statistics works—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660364#M21984</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-02-18T20:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660365#M21985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The nearest 16 would pick up the central block of 9, but I don't know the actual values of the purple cells and which ones it will pick up or what the cell weighting (if any) would be.&lt;/P&gt;&lt;P&gt;I will flag &lt;A href="https://community.esri.com/migrated-users/3428"&gt;Steve Lynch&lt;/A&gt;‌ to see if he has any commentary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660365#M21985</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-18T20:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660366#M21986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, the Majority option will use a 4 by 4 moving filter window to process each pixel.&amp;nbsp; This usually means the 16 nearest pixels.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 21:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660366#M21986</guid>
      <dc:creator>SimonWoo</dc:creator>
      <dc:date>2020-02-18T21:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660367#M21987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the clarification! I did not realize&amp;nbsp;Resample uses a moving filter window. It looks like I need to use Block Statistics as &lt;A href="https://community.esri.com/migrated-users/390241"&gt;David Pike&lt;/A&gt;&amp;nbsp;had mentioned above.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 22:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660367#M21987</guid>
      <dc:creator>MichelleTanner</dc:creator>
      <dc:date>2020-02-18T22:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660368#M21988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not even know this tool existed. thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 22:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660368#M21988</guid>
      <dc:creator>MichelleTanner</dc:creator>
      <dc:date>2020-02-18T22:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain how Majority Resample works for rasters?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660369#M21989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good luck with your project!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 22:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-someone-explain-how-majority-resample-works/m-p/660369#M21989</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-02-18T22:21:17Z</dc:date>
    </item>
  </channel>
</rss>

