<?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: Calculate the mean of multiple rasters and save the result into a new raster. in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38156#M131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then give it a try, the cell statistics with mean/average is what you would want.&amp;nbsp; Check the nodata setting carefully to get the desired result.&lt;/P&gt;&lt;P&gt;If there are too many rasters you may run into memory errors and will have to go with sub-chunks using the 'sum' option, then average those (ie 3 chunks of 10 with sum, to get 3 results which you average)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jan 2019 13:45:22 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2019-01-26T13:45:22Z</dc:date>
    <item>
      <title>Calculate the mean of multiple rasters and save the result into a new raster.</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38153#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a set to 502 rasters (time series) of MO11A2 products (MODIS LST 8-day product), MOD11A2.A2008001.tif,&amp;nbsp;&lt;SPAN&gt;MOD11A2.A2008009.tif etc. They have the same extent and CRS. I want these 8-day products to be averaged into monthly composites. Could "Cell Statistics" do this job?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using ArcMap 10.3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have found a &lt;A _jive_internal="true" href="https://community.esri.com/thread/191220-calculating-mean-of-several-rasters"&gt;similar&lt;/A&gt; question, but I want to be sure that the function is the right one.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2019 10:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38153#M128</guid>
      <dc:creator>NikosTziokas</dc:creator>
      <dc:date>2019-01-26T10:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the mean of multiple rasters and save the result into a new raster.</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38154#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing them in batches of a month (30), then cell statistics will give you the average of the month.&lt;/P&gt;&lt;P&gt;Things get more complicated if you want to do rolling/moving statistics (ie incrementing by 1 day with a 30 day increment).&lt;/P&gt;&lt;P&gt;There are methods outside of cell statistics that cover some of these scenarios.&amp;nbsp; I have a number of blog posts on related issues.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/02/06/cell-statistics-made-easy-raster-data-over-time"&gt;/blogs/dan_patterson/2018/02/06/cell-statistics-made-easy-raster-data-over-time&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but to keep your scenarios simple, block your 500ish rasters into 30 day chunks and use cell statistics on each chunk... assuming that you are using ArcGIS pro and have lots of memory. You wont be able to simply load all 500 rasters and do a 30day block mean because of memory issues.&lt;/P&gt;&lt;P&gt;Alternatives would include using smaller chunks (say 5 days * 6 chunks) and doing a sum on each... then divide the resultant by the number of chunks to get your 30 day average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other possibilities, but those can be discussed should all the above fail.&lt;/P&gt;&lt;P&gt;PS.&amp;nbsp; rasters need to have the exact same extent, cell size, snap raster and you will need to account for nodata values during the calculations (numpy handles these readily btw)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2019 11:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38154#M129</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-26T11:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the mean of multiple rasters and save the result into a new raster.</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38155#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your fast reply.&lt;/P&gt;&lt;P&gt;I have already separated the rasters in different chunks (each chunk represents a single month).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2019 11:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38155#M130</guid>
      <dc:creator>NikosTziokas</dc:creator>
      <dc:date>2019-01-26T11:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the mean of multiple rasters and save the result into a new raster.</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38156#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then give it a try, the cell statistics with mean/average is what you would want.&amp;nbsp; Check the nodata setting carefully to get the desired result.&lt;/P&gt;&lt;P&gt;If there are too many rasters you may run into memory errors and will have to go with sub-chunks using the 'sum' option, then average those (ie 3 chunks of 10 with sum, to get 3 results which you average)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2019 13:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/calculate-the-mean-of-multiple-rasters-and-save/m-p/38156#M131</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-26T13:45:22Z</dc:date>
    </item>
  </channel>
</rss>

