<?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 How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel  in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524377#M7575</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;I am using the 'range'&amp;nbsp;statistics type&amp;nbsp;within the 'focal statistics' tool. For each central pixel ArcGIS calculates the difference between the highest and lowest values in the defined neighborhood area and assigns it to the central pixel. What I am now looking for is a way to identify the highest and lowest pixels within that defined neighborhood area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fidel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 23:13:41 GMT</pubDate>
    <dc:creator>FidelTedla</dc:creator>
    <dc:date>2017-05-31T23:13:41Z</dc:date>
    <item>
      <title>How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524377#M7575</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;I am using the 'range'&amp;nbsp;statistics type&amp;nbsp;within the 'focal statistics' tool. For each central pixel ArcGIS calculates the difference between the highest and lowest values in the defined neighborhood area and assigns it to the central pixel. What I am now looking for is a way to identify the highest and lowest pixels within that defined neighborhood area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fidel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 23:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524377#M7575</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-05-31T23:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524378#M7576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/focal-statistics.htm"&gt;focal statistics minimum and focal statistics max&amp;nbsp;&lt;/A&gt; plus all the other tools in the focal statistics tools in ArcToolbox will cover all combinations and permutations of gleaning other information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 00:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524378#M7576</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-06-01T00:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524379#M7577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Yes, but what I am trying to find out is to actually locate the max and min pixels. The focal statistics tools&amp;nbsp;assign the results of the operation&amp;nbsp;to the central pixel and do not&amp;nbsp;give the actual location of the max/min pixels as an output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fidel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 10:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524379#M7577</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-06-01T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524380#M7578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/focal-flow.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/focal-flow.htm"&gt;Focal Flow—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; to determine the location of the lowest value. To determine the maximum value, invert your raster (highest value - original raster) and run again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524380#M7578</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-06-01T12:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524381#M7579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so if you are using a focalmin, for example, it will determine the minimum value and assign it to the middle value.&amp;nbsp; Try subtracting the original raster from that raster and values of 0 should identify the cell location where the minimum occurred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524381#M7579</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-06-01T12:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524382#M7580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the OP needs to identify the lowest and highest position in a 3x3 window for each pixel&amp;nbsp;I think it will need the Focal Flow to obtain that. &amp;nbsp;Each pixel will obtain a value to points to the&amp;nbsp;relative position where the highest or lowest pixel is located.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/355019_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 13:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524382#M7580</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-06-01T13:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524383#M7581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the link on focal flow or even flow direction, they do use the surrounding cells in their calculation.&amp;nbsp; In the case of focal flow, the cells that contribute the core cell. they don't tell you the exact location of the cells represent the minimum.&amp;nbsp; In the example below, we should get a value of -5 for the minimum, 15 for the maximum and 20 for the range assigned to the core cell.&amp;nbsp; If we use the focal minimum raster and subtracted the input raster from it, we should get a 0 for the top left cell.&amp;nbsp; Values of 0 would be the minimum of one of the moving windows, assuming raster processing is from top left, then the value of 0 would correspond to core cells in standard row/column format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Focal Flow&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="355025" alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/355025_focal_flow.png" style="width: 387px; height: 303px;" /&gt;&lt;/P&gt;&lt;P&gt;Now having said that, if the raster were exported to a numpy array, there are other ways of doing this even using rolling statistics or queries.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;a
array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;11&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;6&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

m &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;min&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;a&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;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# along the row, column... returns -5&lt;/SPAN&gt;

np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;argwhere&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;a &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&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; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dtype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;int64&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# row 0, column 0&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524383#M7581</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T22:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524384#M7582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is how to locate each cell that is the highest or lowest value in its own 3x3 neighborhood. Not sure this is exactly what you want, but I thought I'd throw it out there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions below are formatted for the Raster Calculator tool. BTW, I used "" for neighborhood to use the default, NbrRectangle(3,3).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Cells that are the lowest of the 3x3 around that cell&lt;/SPAN&gt;
Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;FocalStatistics&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_grid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MINIMUM"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_grid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_grid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Cells that are the highest of the 3x3 around that cell&lt;/SPAN&gt;
Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;FocalStatistics&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_grid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MAXIMUM"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_grid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_grid"&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524384#M7582</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T22:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524385#M7583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;‌, &lt;A href="https://community.esri.com/people/xander_bakker"&gt;xander_bakker&lt;/A&gt;‌, &lt;A href="https://community.esri.com/people/curtvprice"&gt;curtvprice&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for the help so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The suggested methods are unfortunately not doing what I want to do. This is mainly because the neighborhood zone is overlapping as the operation moves from&amp;nbsp;one cell to another&amp;nbsp;cell. The minimum cell&amp;nbsp;for the&amp;nbsp;first central cell will change its value to the minimum value&amp;nbsp;for&amp;nbsp;its own neighborhood as the operation moves from cell to cell. As a result subtracting the minimum raster from the original raster (or the method suggested by Curtis) will not give me the locations of all the minimum cells for each neighborhood zone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more suggestions are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Fidel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524385#M7583</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-06-02T15:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524386#M7584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the Flow Direction tool yet? It will return the lowest value for each pixel in a 3x3&amp;nbsp;neighborhood. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524386#M7584</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-06-02T16:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524387#M7585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/block-statistics.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Block Statistics?&lt;/A&gt; This works with neighborhoods that do not overlap. I suspect this still isn't what you want though, since this is around the central cell again. Can you explain your use case -- what exactly are trying to do?&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;# Cells that are the lowest of the 3x3 around that cell
Con(BlockStatistics("in_grid", "", "MINIMUM") == "in_grid"), "in_grid")
# Cells that are the highest of the 3x3 around that cell
Con(BlockStatistics("in_grid", "", "MAXIMUM") == "in_grid", "in_grid")‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;All these Spatial Analyst raster operators output values of the central cell of a window, if the procedure &lt;A href="https://community.esri.com/migrated-users/3100" target="_blank"&gt;Xander Bakker&lt;/A&gt;&amp;nbsp;suggests (messing with FocalFlow) won't do it, it seems likely &lt;A href="https://community.esri.com/migrated-users/3116" target="_blank"&gt;Dan Patterson&lt;/A&gt;'s suggestion of&amp;nbsp;numpy arrays is the only way to do what you want. There is a useful cookbook in the help on how to do cell by cell neighborhood stuff in numpy:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/numpyarraytoraster-function.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/numpyarraytoraster-function.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;NumPyArrayToRaster—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Back in the day, Spatial Analyst (ArcInfo Workstation GRID) supported neighorhood notation, but it was pretty slow and limited, this functionality is now covered by working with numpy arrays.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524387#M7585</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T22:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524388#M7586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately Focal flow and Flow Direction are not working for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 21:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524388#M7586</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-06-03T21:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524389#M7587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;‌, &lt;A href="https://community.esri.com/people/curtvprice"&gt;curtvprice&lt;/A&gt;‌, &lt;A href="https://community.esri.com/people/xander_bakker"&gt;xander_bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find upper and lower reservoir locations for potential pumped storage hydropower sites in a large area. My input is a Digital Elevation Model. So if I use a non-overlapping neighborhood, I will&amp;nbsp;miss many possible upper and lower reservoir combinations in which one of the reservoirs lies in one neighborhood and the other reservoir in the adjacent neighborhood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with NumPy Arrays and would really appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Fidel&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 21:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524389#M7587</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-06-03T21:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524390#M7588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Image of what you are working with would help....&lt;/P&gt;&lt;P&gt;We are either not talking about the same thing, since both my suggestions will work, or your error in location would be one whole cell size width.&lt;/P&gt;&lt;P&gt;If need be, zip and save a portion... not the whole thing... to a raster maybe in *.tif format, so I can demonstrate how to do it with real data as either a raster/grid or numpy array.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 21:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524390#M7588</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-06-03T21:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524391#M7589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean image of a typical pumped storage hydropower site?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 22:07:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524391#M7589</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-06-03T22:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524392#M7590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry didn't read your whole message when I&amp;nbsp;when I sent the previous reply. Will send it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 22:09:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524392#M7590</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-06-03T22:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524393#M7591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whatever this is &amp;nbsp; ....&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV style="display: block;"&gt;&lt;DIV&gt;&lt;DIV data-linkedid="communications_2_690674_14_2091"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-extendedauthors="false" data-extvisible="false" data-objectid="690674" data-objecttype="2"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;EM&gt;What I am now looking for is a way to identify the highest and lowest pixels within that defined neighborhood area.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It is a raster I presume... or the question doesn't make sense&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 22:10:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524393#M7591</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-06-03T22:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524394#M7592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you are&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 22:25:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524394#M7592</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-06-03T22:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524395#M7593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="355344" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/355344_focalmin_example.png" style="width: 620px; height: 305px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over the DEM with transparency&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/355345_focalmin_example2.png" style="width: 620px; height: 322px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 22:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524395#M7593</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-06-03T22:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the highest and lowest pixels within a defined neighborhood area of a central pixel</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524396#M7594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not what I am looking for. This is the original raster minus the Focal Min raster. As explained in one of my posts above this is not giving me what I am looking for. I am looking for the location of the min or max for each central cell. That means the number of min or max locations to be identified must be equal to the number of cells in the original raster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 23:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-identify-the-highest-and-lowest-pixels/m-p/524396#M7594</guid>
      <dc:creator>FidelTedla</dc:creator>
      <dc:date>2017-06-03T23:12:20Z</dc:date>
    </item>
  </channel>
</rss>

