<?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: polygon cell statistics in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215351#M16612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried Zonal Statistics as Table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can provide species layer as 'Input raster or feature zone data', species name (or id) as 'Zone field' and temperature raster as 'Input value raster'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You get a table with various statistics which can be joined back to the species layer by species identificator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To loop through 100 species just iterate through them using ListFeatureClasses (your recent postings proove you can do that;))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2012 11:33:04 GMT</pubDate>
    <dc:creator>MarcinGasior</dc:creator>
    <dc:date>2012-06-06T11:33:04Z</dc:date>
    <item>
      <title>polygon cell statistics</title>
      <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215350#M16611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;System: ArcGIS 9.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dataset: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. polygons of 3000 grid cells, each containing the average annual temperature of the grid cell &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. tree distribution map for 5 species (polygons) (species 1 to 5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Purpose&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know the average annual temperature of the ranges of species 1 to 5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I want to compare if there is any difference in average annual temperature between the species distribution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Procedure:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 1: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Clip the grid cell polygons using the distribution maps of the five tree species respectively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 2: calculate the average of the annual temperature of the clipped polygons from species 1 to 5 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please kindly advise which method in ArcGIS 9.3 can perform step 2 for polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, please kindly advise if it is possible to be written in python for automation for more than 100 tree species.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Once zonal statistics was suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it was based on raster. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it but found this was time and space-consuming &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to transfer polygons to raster based on fine-scale.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215350#M16611</guid>
      <dc:creator>ElaineKuo</dc:creator>
      <dc:date>2012-06-06T11:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: polygon cell statistics</title>
      <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215351#M16612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried Zonal Statistics as Table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can provide species layer as 'Input raster or feature zone data', species name (or id) as 'Zone field' and temperature raster as 'Input value raster'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You get a table with various statistics which can be joined back to the species layer by species identificator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To loop through 100 species just iterate through them using ListFeatureClasses (your recent postings proove you can do that;))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215351#M16612</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-06T11:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: polygon cell statistics</title>
      <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215352#M16613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the immediate response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I found zonal statistics has provided ArcObject code instead of python one for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please kindly clarify if "the loop" means python or ArcObject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is the latter, is it possible to make ArcObject loops using python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I am more unfamiliar with ArcObject than with python)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215352#M16613</guid>
      <dc:creator>ElaineKuo</dc:creator>
      <dc:date>2012-06-06T11:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: polygon cell statistics</title>
      <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215353#M16614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In web help on &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?topicname=Zonal_Statistics_as_Table"&gt;Zonal Statistics as Table&lt;/A&gt;&lt;SPAN&gt; the Python scripting example is also present.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215353#M16614</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-06T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: polygon cell statistics</title>
      <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215354#M16615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One of the input fields of zonal statistics as table confused me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It was �??in_value_raster�?�. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not know which raster file to be input, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because I only have feature datasets at hand.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2012 21:20:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215354#M16615</guid>
      <dc:creator>ElaineKuo</dc:creator>
      <dc:date>2012-06-09T21:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: polygon cell statistics</title>
      <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215355#M16616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was convinced that the average annual temperature information layer is in raster format (as it's the best format to represent such data).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have an access to original raster data of teperatures, you can convert polygon layer back to raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use Polygon to Raster tool (Conversion -&amp;gt; To Raster -&amp;gt; Polygon to Raster). It's important to know or measure the cell size in your polygon dataset.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 05:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215355#M16616</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-11T05:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: polygon cell statistics</title>
      <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215356#M16617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for advising on polygon-raster conversion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the output cell sizes were different when using �??feature to raster�?� and �??polygon to raster.�?� &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which output cell size is more close to the original cell size? Why?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 20:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215356#M16617</guid>
      <dc:creator>ElaineKuo</dc:creator>
      <dc:date>2012-06-12T20:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: polygon cell statistics</title>
      <link>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215357#M16618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Default cell size populated by those tools may not be accurate at all. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The best you can do is to get to know the cell size of original temperature raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's not possible, zoom to square feature in your polygon layer and measure the length of a side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then provide this value as cell size in tool window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 04:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polygon-cell-statistics/m-p/215357#M16618</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-13T04:00:54Z</dc:date>
    </item>
  </channel>
</rss>

