<?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: Average raster value within search area from points in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007229#M11067</link>
    <description>&lt;P&gt;zonal statistics does have "majority" aka mode&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/zonal-statistics.htm" target="_blank"&gt;Zonal Statistics (Spatial Analyst)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Dec 2020 17:45:04 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-12-06T17:45:04Z</dc:date>
    <item>
      <title>Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007185#M11057</link>
      <description>&lt;P&gt;Hello, I searched for this, but I just can't find a solution.&lt;/P&gt;&lt;P&gt;Here's the problem: I have roads as a vector line file (geodatabase). I have a hazard layer as a raster file (values are from 0 to 10). I would like to assign a hazard rating (1 to 10) to each road. However, hazard changes dramatically from one place along the line to another. So, I know I need to segment the lines. I'll probably do them in 200-foot intervals. With that in mind, I created points along the roads every 100 feet.&lt;/P&gt;&lt;P&gt;My idea was to extract the values from the raster layer to the 100-ft interval points, then do a spatial join to the 200ft-segmented roads.&lt;/P&gt;&lt;P&gt;However, where the roads are, in the hazard layer, there is no hazard (0) because its a road in the raster too.&lt;/P&gt;&lt;P&gt;Is there a way to extract the average of all the cells in a 200ft centered radius around each of the points? And can I somehow ignore 0 values?&lt;/P&gt;&lt;P&gt;I suspect I need to do this in python, but hoping there's a tool I'm not aware of.&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 22:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007185#M11057</guid>
      <dc:creator>PetronilaMandeno</dc:creator>
      <dc:date>2020-12-05T22:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007188#M11059</link>
      <description>&lt;P&gt;Follow up: here's what I ended up doing:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Buffered my roads by 200 feet&lt;/LI&gt;&lt;LI&gt;With that buffered layer, extracted by mask from the hazard raster&lt;/LI&gt;&lt;LI&gt;Convert those to points (deleting any that were less than 1 or null)&lt;/LI&gt;&lt;LI&gt;Then I split my roads into 200 foot sections (its just a manageable distance to use)&lt;/LI&gt;&lt;LI&gt;Lastly, I did a spatial join, joining the point data to the lines and used the nearest option (instead of intersect) and computed the average only.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This will work for now, but I don't know what 'nearest' means. Does it just use the ones it encounters first all along the line or does it use a set distance? Would be cool to be able to set a distance.&lt;/P&gt;&lt;P&gt;If anyone else has a more elegant way of doing this, please let me know!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 00:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007188#M11059</guid>
      <dc:creator>PetronilaMandeno</dc:creator>
      <dc:date>2020-12-06T00:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007193#M11060</link>
      <description>&lt;P&gt;That's close to what I would suggest. If you happen to have &lt;STRONG&gt;Spatial Analyst&lt;/STRONG&gt; or &lt;STRONG&gt;Image Analyst&lt;/STRONG&gt; licenses, what you really ought to use is &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/zonal-statistics.htm" target="_self"&gt;&lt;EM&gt;Zonal Statistics&lt;/EM&gt;&lt;/A&gt;, which will summarize the hazard raster within the buffer features, but if that's not an option, your method is almost right.&lt;/P&gt;&lt;P&gt;In your spatial join, choosing &lt;STRONG&gt;nearest&lt;/STRONG&gt; means that only the single nearest feature will be joined to your input feature. You probably want to be using the &lt;STRONG&gt;within a distance&lt;/STRONG&gt; option, so that data from all points within a defined distance can be aggregated.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 03:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007193#M11060</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2020-12-06T03:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007198#M11061</link>
      <description>&lt;P&gt;As a caution... there is no such thing as an "average hazard" or "average hazard class"&lt;/P&gt;&lt;P&gt;Classes are at best categorical data and have no statistical parameters other than counts.&lt;/P&gt;&lt;P&gt;Ranks are a slight step above in that the classes have ordination, but the spacing between the ranks need not imply equality, hence there is no average or other such descriptors.&lt;/P&gt;&lt;P&gt;So unless your hazard data are described on an interval/ratio scale, you would be advised to use zonal statistics to describe the "most frequent" hazard and fight the urge to describe an "average hazard"&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;Hazard&lt;/P&gt;&lt;P&gt;4 unstable slopes&lt;/P&gt;&lt;P&gt;5&amp;nbsp; flooding risk&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;for categorical classes what would you call an average of 4.5? (flooding risk on unstable slopes)&lt;/P&gt;&lt;P&gt;Hazard classification for&amp;nbsp;flood recurrence interval&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 1 year&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;2&amp;nbsp; &amp;nbsp;5 year&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 10 year flood&amp;nbsp;&lt;/P&gt;&lt;P&gt;4&amp;nbsp; 100 year flood&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp;1000 year flood&lt;BR /&gt;what would you call an average of 4.5? since the scale isn't linear.&lt;BR /&gt;Just address the measurement scale before addressing what information you really need.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 06:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007198#M11061</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-06T06:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007208#M11062</link>
      <description>&lt;P&gt;I'd definitely recommend&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;s method.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 12:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007208#M11062</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-12-06T12:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007216#M11063</link>
      <description>&lt;P&gt;Hello Dan - thanks for thinking through this. You are right. I don't need an average. The most frequent hazard rating would be closer to what I need. Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 14:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007216#M11063</guid>
      <dc:creator>PetronilaMandeno</dc:creator>
      <dc:date>2020-12-06T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007217#M11064</link>
      <description>&lt;P&gt;Hello Josh, thank you for your ideas! I do have Spatial Analyst and I thought of using Zonal Statistics, but I don't know how to efficiently create a bunch of zones along the line. Any thoughts on that?&lt;/P&gt;&lt;P&gt;Regarding the distance for the spatial join, there isn't an option to do that. I *wish* there was an option, but the only options I get when I do the spatial join is intersect or nearest points. (I don't want the intersect because the hazard layer has the road represented in it and it's just 0 - I want the hazard rating around the line).&lt;/P&gt;&lt;P&gt;Thanks again for your idea. I will research more to see if I can come up with a way to use the zonal stats.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 14:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007217#M11064</guid>
      <dc:creator>PetronilaMandeno</dc:creator>
      <dc:date>2020-12-06T14:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007219#M11065</link>
      <description>&lt;P&gt;The zones would be the buffers from your road segments.&amp;nbsp; If i'm guessing right - you're probably trying to use the spatial join via a table-of-contents menu, please please dont use this tool, use the geoprocessing too Spatial Join&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/tools/analysis-toolbox/spatial-join.htm" target="_blank"&gt;Spatial Join—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;. That has much more options.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 14:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007219#M11065</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-12-06T14:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007227#M11066</link>
      <description>&lt;P&gt;Hmm, well, I buffered the roads before I segmented them, but I guess I could buffer the segments... I'll have to try that.&lt;/P&gt;&lt;P&gt;And yes, I did use the spatial join via the TOC. I didn't know the geoprocessing tool had more options! I'll try that too.&lt;/P&gt;&lt;P&gt;By the way, after the join, it does give a count of how many features it averaged. The values in the count field range from 1 to over 200 points (presumably) were used to get the average (not going to use now because I think I really want the most frequent hazard within 200 feet of the line segment). But I can't find anywhere in the documentation where it explains what 'nearest' means. So I'll definitely check out the geoprocessing tool instead so I can be more specific. Thanks again!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 17:43:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007227#M11066</guid>
      <dc:creator>PetronilaMandeno</dc:creator>
      <dc:date>2020-12-06T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007229#M11067</link>
      <description>&lt;P&gt;zonal statistics does have "majority" aka mode&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/zonal-statistics.htm" target="_blank"&gt;Zonal Statistics (Spatial Analyst)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 17:45:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007229#M11067</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-06T17:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Average raster value within search area from points</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007231#M11068</link>
      <description>&lt;P&gt;Okay - here's what I did and it seemed to work (much quicker than I had initial thought it would - bonus!):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Buffer the lines by 200 ft&lt;/LI&gt;&lt;LI&gt;Extracted by mask from my fire hazard layer using the buffered layer&lt;/LI&gt;&lt;LI&gt;Converted resulting extracted raster to points&lt;/LI&gt;&lt;LI&gt;Did a spatial join - with the geoprocessing tool, not the TOC tool and specified to get the mode with a 200 foot search radius&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;That did the treat! Thank you all!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 18:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/average-raster-value-within-search-area-from/m-p/1007231#M11068</guid>
      <dc:creator>PetronilaMandeno</dc:creator>
      <dc:date>2020-12-06T18:14:52Z</dc:date>
    </item>
  </channel>
</rss>

