<?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: Focal Statistics sum in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47128#M601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your response. Just tried it with Processing Extent, XY Resolution, and Cell Size (under Raster Analysis) explicitly set. Same result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 20:04:14 GMT</pubDate>
    <dc:creator>NeilCurri</dc:creator>
    <dc:date>2011-05-11T20:04:14Z</dc:date>
    <item>
      <title>Focal Statistics sum</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47126#M599</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;BR /&gt;&lt;SPAN&gt;Just running a simple focal statistics analysis on a grid surface of vegetation density, summing up values for each cell within 2 nearest neighbors (rectangle) in the width and height. The tool runs fine, but the sums in the output raster for each cell don't jive with what's in the input raster. For example, one cell in the input raster has a value of 3,239. The value of that cell in the output raster should be the sum of the cells in the surrounding 2-cell rectangular neighborhood, but it is far less (12,038) than what it should be. In fact, the sum of the values in just 1 nearest neighbor, which I calculated manually, would be much more (39,002). I've run the tool several times (screenshot attached). Is there just something I don't understand about the way this tool works, or did I set something up wrong? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; -Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 18:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47126#M599</guid>
      <dc:creator>NeilCurri</dc:creator>
      <dc:date>2011-05-11T18:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Focal Statistics sum</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47127#M600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ensure that the exact same cell size and extent as the input raster was used?&amp;nbsp; Check in the Environments tab for any tool that you use in Arctoolbox...sometimes they don't stick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 18:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47127#M600</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-05-11T18:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Focal Statistics sum</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47128#M601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your response. Just tried it with Processing Extent, XY Resolution, and Cell Size (under Raster Analysis) explicitly set. Same result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 20:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47128#M601</guid>
      <dc:creator>NeilCurri</dc:creator>
      <dc:date>2011-05-11T20:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Focal Statistics sum</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47129#M602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The two nearest cells would be 5 x 5 neighborhood:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;o o o o o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;o o o o o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;o o x o o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;o o o o o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;o o o o o&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a 2 x 2 neighborhood probably looks more like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;o o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;x o&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 04:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47129#M602</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2011-05-12T04:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Focal Statistics sum</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47130#M603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To echo, what Curtis mentioned.&amp;nbsp; Take a look at the help documentation for the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/How_Focal_Statistics_works/009z000000r7000000/"&gt;tool&lt;/A&gt;&lt;SPAN&gt; to understand what you should be comparing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are looking for someone to break it down with you, to see exactly what may be occurring, I encourage you to create a Support Incident and the Analyst should be able to explain it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rectangle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The x,y position for the processing cell within the neighborhood, with respect to the upper left corner of the neighborhood, is determined by the following equations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = (width of the neighborhood + 1)/2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = (height of the neighborhood + 1)/2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the input number of cells is even, the x,y coordinates are computed using truncation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example, in a 5 x 5 cell neighborhood, the x- and y-values are 3,3. In a 4 x 4 neighborhood, the x- and y-values are 2,2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The units for the width and height values can be defined in cells or in map units.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Focal statistics with rectangle neighborhood illustration&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 10:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47130#M603</guid>
      <dc:creator>JeffreySwain</dc:creator>
      <dc:date>2011-05-12T10:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Focal Statistics sum</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47131#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right. Makes perfect sense now looking back at the language - width and height. What made intuitive sense to me was distance from the cell, and I just couldn't see beyond how I thought this was *supposed* to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This article in the help explains it well, had I bothered to dig a little deeper:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/How_Focal_Statistics_works/009z000000r7000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/How_Focal_Statistics_works/009z000000r7000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for clearing this up for me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; -Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 19:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-sum/m-p/47131#M604</guid>
      <dc:creator>NeilCurri</dc:creator>
      <dc:date>2011-05-16T19:44:10Z</dc:date>
    </item>
  </channel>
</rss>

