<?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: Raster counts within polygons in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738594#M2316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you give Zonal Statistics as Table a shot?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 19:11:41 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2013-10-23T19:11:41Z</dc:date>
    <item>
      <title>Raster counts within polygons</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738593#M2315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to retrace some steps.&amp;nbsp; I was working experimentally and discounted the results and then after further analysis a few weeks later it was something that was useful.&amp;nbsp; I need to remember what the procedure was, or find another way to get the same answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcGIS 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a raster layer with a given hydrology values in cm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a polygon layer with tree canopy classifications (1 for areas with tree canopy cover, 0 for polygons with no canopy cover)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to get pixel counts for the entire polygon layer for so that I know for each unique hydrology value what the counts of canopy and no canopy pixels are.&amp;nbsp; The final goal is to build a stacked histogram in excel to show the proportion of canopy and non canopy pixels at various hydrology levels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I may have used zonal statistics in some manner, but I would appreciate any opinions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 18:50:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738593#M2315</guid>
      <dc:creator>DanJensen1</dc:creator>
      <dc:date>2013-10-23T18:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Raster counts within polygons</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738594#M2316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you give Zonal Statistics as Table a shot?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 19:11:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738594#M2316</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2013-10-23T19:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Raster counts within polygons</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738595#M2317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried it and did use it for other parts of this analysis.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I used it wrong, but I have polygon id numbers with a canopy classification, a count of pixels within that polygon, and then the min max mean etc of the raster values (I think that is what I am seeing).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want is the count of each unique hydrology value (which I have when I created the attribute table for the entire raster) broken down into the two tree canopy cover classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Did you give Zonal Statistics as Table a shot?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 19:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738595#M2317</guid>
      <dc:creator>DanJensen1</dc:creator>
      <dc:date>2013-10-23T19:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Raster counts within polygons</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738596#M2318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you referring to the combine tool? &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z0000007r000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//009z0000007r000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 20:43:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738596#M2318</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2013-10-23T20:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Raster counts within polygons</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738597#M2319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dan (and Dan),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both Combine and Zonal Statistics (as table) will get you there. With the Combine option you can convert the result to Excel and make a pivot table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the easiest way is to use the "&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z000000w8000000"&gt;Zonal Statistics as Table (Spatial Analyst)&lt;/A&gt;&lt;SPAN&gt;" as Dan first suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will have to use your hydrology raster as dataset that defines the &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;zones&lt;/SPAN&gt;&lt;SPAN&gt; and your canopy polygons (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001200000030000000"&gt;converted from polygons to raster&lt;/A&gt;&lt;SPAN&gt;) as your &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;value&lt;/SPAN&gt;&lt;SPAN&gt; raster. The result will give you all the statistics you need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The COUNT will give you the area of each zone (if you multiply it be cell size)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The SUM will give you the number of pixels with canopy per zone&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MEAN * 100 (or SUM / COUNT * 100) will give you the percentage of canopy per hydrology value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some considerations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the zone input is a raster dataset (which it is), it must have an attribute table. This means it has to be of type Integer (cannot be Float). The attribute table is usually created automatically for integer rasters, but may not be under certain circumstances. You can use "&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/0017/0017000000m2000000.htm"&gt;Build Raster Attribute Table&lt;/A&gt;&lt;SPAN&gt;" to create one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z000000sr000000"&gt;Reclassify&lt;/A&gt;&lt;SPAN&gt; your hydrology values into meaningful classes and use those classes as zones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 06:03:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/raster-counts-within-polygons/m-p/738597#M2319</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-10-24T06:03:54Z</dc:date>
    </item>
  </channel>
</rss>

