<?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: 10,000 inputs for Cell Statistics? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491835#M38523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I tend not to use cell statistics, but I use NumPy... fewer problems and more functionality.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/reclassify-raster-data-simply"&gt;/blogs/dan_patterson/2016/08/14/reclassify-raster-data-simply&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/173806"&gt;https://community.esri.com/thread/173806&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The latter is a similarly related problem which you might be interested in. &amp;nbsp;the discussion from which it is branched is quite long, has some other options and there are other samples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2016 00:01:36 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-10-26T00:01:36Z</dc:date>
    <item>
      <title>10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491832#M38520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to have 10,000 inputs for cell statistics? I keep getting an error, saying that I can't save the output as a TIF. &amp;nbsp;I get the following: ERROR 010240.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas or suggestions on how to tackle this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;arcpy.CheckOutExtension("Spatial")&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;BR /&gt;arcpy.env.mask = r'E:\Reference_ET\Verification\GCS_PRISM_4km.shp'&lt;/P&gt;&lt;P&gt;print "Loaded Pre-processing extents..."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TmaxWs = r'M:\PRISM\Daily\tmax'&lt;BR /&gt;TminWs = r'M:\PRISM\Daily\tmin'&lt;BR /&gt;outws = r'E:\Reference_ET\KT'&lt;BR /&gt;TmaxList = []&lt;BR /&gt;TminList = []&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print "Completing Lists..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for dirpath, dirnames, filenames in arcpy.da.Walk(TmaxWs, topdown=True, datatype="RasterDataset"): &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;for filename in filenames:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TmaxList.append(os.path.join(dirpath, filename))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;listfile = os.path.join(dirpath, filename)&lt;/P&gt;&lt;P&gt;print "\t- Successful \n"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print "Calculating Average Max Temp from 1984-2015..."&lt;BR /&gt;TmaxRas = arcpy.sa.CellStatistics(TmaxList, "MEAN")&lt;/P&gt;&lt;P&gt;print "\t- Completed Cell Statistics... \n"&lt;/P&gt;&lt;P&gt;TmaxRas.save(outws + r'\Tmax30yr.tif')&lt;BR /&gt;print "\t- Successful \n"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 14:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491832#M38520</guid>
      <dc:creator>NMWater</dc:creator>
      <dc:date>2016-10-25T14:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: 10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491833#M38521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;throw a print statement before&lt;/P&gt;&lt;P&gt;TmaxRas.save(outws + r'\Tmax30yr.tif')&lt;/P&gt;&lt;P&gt;just to confirm that the path is correct.&lt;/P&gt;&lt;P&gt;Options to try&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a different location&lt;/LI&gt;&lt;LI&gt;a different file type&lt;/LI&gt;&lt;LI&gt;save to a geodatabase&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;One of those seems to work for the dozens of Dr Google suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 14:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491833#M38521</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-10-25T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: 10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491834#M38522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following three actions and&amp;nbsp;still received&amp;nbsp;the same error. I'm wondering if this is due to the number of inputs? It's daily data from 1984 to 2015, almost over 11,000 rasters. I also tried just limiting the process to two years, 730 rasters and still received the same results. It is completing but fails at&amp;nbsp;saving. Any ideas or other suggestions? Can it possibly be some settings I'm missing in the script?&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;print "\t- Completed Cell Statistics... \n"&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 22:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491834#M38522</guid>
      <dc:creator>NMWater</dc:creator>
      <dc:date>2016-10-25T22:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: 10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491835#M38523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I tend not to use cell statistics, but I use NumPy... fewer problems and more functionality.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/reclassify-raster-data-simply"&gt;/blogs/dan_patterson/2016/08/14/reclassify-raster-data-simply&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/173806"&gt;https://community.esri.com/thread/173806&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The latter is a similarly related problem which you might be interested in. &amp;nbsp;the discussion from which it is branched is quite long, has some other options and there are other samples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 00:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491835#M38523</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-10-26T00:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: 10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491836#M38524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Dan! &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a couple of more print messages and it seems to be something with the .save() function. It keeps failing at that line. Would there be a possible way to get a more specified error message? &amp;nbsp;Say for example, is this being caused by temp files, not enough space, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding, NumPy and your method,&amp;nbsp;I read the thread. Would the "aust_temperature_demo.py" be something that I could modify to get a mean tif&amp;nbsp;of temperature?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 20:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491836#M38524</guid>
      <dc:creator>NMWater</dc:creator>
      <dc:date>2016-10-26T20:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: 10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491837#M38525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to the Results window... copy the info from their and your error message&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/using-the-results-window.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/using-the-results-window.htm"&gt;Using the Results window—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yes it could be an option, but I have several distractions on the go now so you would be on your own for a bit.&lt;/P&gt;&lt;P&gt;In the interim, you should be able to parse your works into parts, then assemble.&lt;/P&gt;&lt;P&gt;I would also still like to see your file names and those results window error messages and the actual error message... those I can deal with, even though they may seem cryptic&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 21:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491837#M38525</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-10-26T21:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: 10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491838#M38526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;After running the processes on ArcMap python window. I received&amp;nbsp;the following error:&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/legacyfs/online/253514_pastedImage_1.png"&gt;&lt;IMG class="image-1 jive-image" height="238" src="https://community.esri.com/legacyfs/online/253515_pastedImage_1.png" style="border: 0px; font-weight: inherit; margin: 2px 20px 0px;" width="964" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I clipped my images to my study area and just processed&amp;nbsp;two years worth&amp;nbsp;of data, the processed work. I think this is most likely a RAM issue, since I have 1 TB hard drive on my computer.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thanks a million!&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Francisco&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 14:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491838#M38526</guid>
      <dc:creator>NMWater</dc:creator>
      <dc:date>2016-10-28T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: 10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491839#M38527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take the advice... shut everything else down except what you need and don't forget 32 bit ArcMap only uses 4 Gb or ram regardless how much you have.&amp;nbsp; Another reason to use Pro and python 3.x.&amp;nbsp; Memory is cheap when you compare it to lost or slowdowns in time (try 32 Gb or ram and get the best fully memory loaded video card you can afford)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 16:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491839#M38527</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-10-28T16:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: 10,000 inputs for Cell Statistics?</title>
      <link>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491840#M38528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan thanks a million!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Switched to GIS pro and Python 3.4. Worked like a charm!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francisco&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 22:04:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-000-inputs-for-cell-statistics/m-p/491840#M38528</guid>
      <dc:creator>NMWater</dc:creator>
      <dc:date>2016-10-28T22:04:43Z</dc:date>
    </item>
  </channel>
</rss>

