<?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: Summary Statistics Script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/summary-statistics-script/m-p/29968#M2370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Samantha,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the variable is optional and you don't want to use it just ignore it totally in your script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 20:43:18 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2014-04-01T20:43:18Z</dc:date>
    <item>
      <title>Summary Statistics Script</title>
      <link>https://community.esri.com/t5/python-questions/summary-statistics-script/m-p/29967#M2369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi! I am attempting to write a script that will provide me with average NDVI pixel values in a raster, so I can later put the means into a time series. I keep getting an invalid syntax error in the "{case_field}" section of the code. This is an optional parameter that I do not think I want to utilize. Any input on what I am doing wrong would be very appreciated! Here is my script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Summary Statistics Tool.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Statistics_analysis(in_table, out_table, statistics_fields, {case_field})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = r'D:\rmnp\SamSOrgNDVIData\TEST89\New folder'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Local Variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;out_table= r'D:\rmnp\SamSOrgNDVIData\TEST89\New folders\\'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Process: Summary Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rastList=arcpy.ListRasters()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for rast in rastList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Statistics_analysis(rast, out_table + "_St1", ["MEAN"], "#")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 20:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/summary-statistics-script/m-p/29967#M2369</guid>
      <dc:creator>SamanthaSmyth</dc:creator>
      <dc:date>2014-04-01T20:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Statistics Script</title>
      <link>https://community.esri.com/t5/python-questions/summary-statistics-script/m-p/29968#M2370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Samantha,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the variable is optional and you don't want to use it just ignore it totally in your script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 20:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/summary-statistics-script/m-p/29968#M2370</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-04-01T20:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Statistics Script</title>
      <link>https://community.esri.com/t5/python-questions/summary-statistics-script/m-p/29969#M2371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Errrr, doesn't Statistics_analysis work on tables or feature classes, not rasters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try GetRasterProperties_management, this will return the MEAN, STDEV, MIN, Max etc etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 13:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/summary-statistics-script/m-p/29969#M2371</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2014-04-02T13:10:50Z</dc:date>
    </item>
  </channel>
</rss>

