<?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: Analysis of overlaying rasters in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716650#M10398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aim of this analysis is to have each cell show the mean wing length, body length&amp;nbsp; &amp;amp; thorax width of all species which occur in the pixel. So in the end, I hope to have three rasters which show me all of the three measurements, and therefore show me the spatial distribution of the average body size (either wing length, body length or thorax width).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I have 1000 rasters each with a attribute table like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Att_tbl.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/59130_Att_tbl.png" style="width: 620px; height: 57px;" /&gt;&lt;/P&gt;&lt;P&gt;All rasters are classified as 1 (equal presence of the species). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each single cell of the rasters overlap exactly and have the same cell size. But the raster themselves have different extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One cell is 100 * 100 km. The study area is the whole "old world." (so theoretically there would be a maximal of 205 columns and 141 rows possible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 23:52:08 GMT</pubDate>
    <dc:creator>NicolasBeerli</dc:creator>
    <dc:date>2015-02-05T23:52:08Z</dc:date>
    <item>
      <title>Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716646#M10394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have around 1000 raster data layer. Every single one represents a distribution range of a species. &lt;/P&gt;&lt;P&gt;In the attribute table of each raster data layer are the body measurements of the specimen (there is only&lt;/P&gt;&lt;P&gt;one row per attribute table).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a method in which I could calculate for each pixel the mean body size of the overlaying rasters. &lt;/P&gt;&lt;P&gt;Is there something like that? It would be best if I could repeat that for severals columns in the attribute table.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a more or less simple solution for this problem? Haven't found anything till now..&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 20:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716646#M10394</guid>
      <dc:creator>NicolasBeerli</dc:creator>
      <dc:date>2015-02-05T20:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716647#M10395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If indeed you have separate rasters, have you examined out the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Cell_Statistics/009z0000007q000000/"&gt;Cell Statistics&lt;/A&gt; tool in ArcToolbox (with the nodata option selected)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716647#M10395</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-05T22:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716648#M10396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Cell Statistics would be the right tool if it only had a field where I could access the columns of the attribute table (as parameter). The values that I was going to use to calculate the mean are in the attribute table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716648#M10396</guid>
      <dc:creator>NicolasBeerli</dc:creator>
      <dc:date>2015-02-05T22:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716649#M10397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So let me get this clear...you have 1000 rasters each with a table with multiple attributes.&lt;/P&gt;&lt;P&gt;What is each raster classed upon?&amp;nbsp; How many rows and columns are there in raster?&amp;nbsp; (and I assume that they overlap exactly and have the same cell size)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716649#M10397</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-05T22:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716650#M10398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aim of this analysis is to have each cell show the mean wing length, body length&amp;nbsp; &amp;amp; thorax width of all species which occur in the pixel. So in the end, I hope to have three rasters which show me all of the three measurements, and therefore show me the spatial distribution of the average body size (either wing length, body length or thorax width).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I have 1000 rasters each with a attribute table like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Att_tbl.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/59130_Att_tbl.png" style="width: 620px; height: 57px;" /&gt;&lt;/P&gt;&lt;P&gt;All rasters are classified as 1 (equal presence of the species). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each single cell of the rasters overlap exactly and have the same cell size. But the raster themselves have different extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One cell is 100 * 100 km. The study area is the whole "old world." (so theoretically there would be a maximal of 205 columns and 141 rows possible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 23:52:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716650#M10398</guid>
      <dc:creator>NicolasBeerli</dc:creator>
      <dc:date>2015-02-05T23:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716651#M10399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting... although it doesn't sounds as the most appropriate format to store this type of information. What I would probably do is this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;batch convert the rasters into polygons&lt;/LI&gt;&lt;LI&gt;merge them all into 1 featureclass (this should have the polygon(s) of each raster and the attributes are assumed to be the same&lt;/LI&gt;&lt;LI&gt;Intersect this featureclass with a featureclass that holds the extent. In this step the overlapping features in the merged featureclass are also intersected.&lt;/LI&gt;&lt;LI&gt;Create unique label points (inside each polygon) and for each label point (best stored in a dictionary) extract the information of the overlapping data (attributes).&lt;/LI&gt;&lt;LI&gt;Aggregate the data as you desire (also register the number of species per polygon) and create an output without overlap with the stats linked to it.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It did something similar (although) completely different, when I wanted to make a heatmap of visits based on a log of a map service. The extents listed in the logs, were merged into 1 featureclass (many overlapping features) and to determine the visits I simply intersected the featureclass with an extent featureclass of my AOI and did the analysis with the label points in a dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are willing to share a small set of data I can see if I can adapt the code to works with it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 03:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716651#M10399</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-06T03:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716652#M10400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sounds like a good way to handle this data. I`ve already done the first 2 steps you suggested and I`m going to try the others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be wonderful if you could have a quick look at it. Here is a sample:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/sh/8mkvc3sbt33dtik/AACBOX6oqEHEYmWRD-wFhm80a?dl=0" style="line-height: 1.5;"&gt;https://www.dropbox.com/sh/8mkvc3sbt33dtik/AACBOX6oqEHEYmWRD-wFhm80a?dl=0&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;P.S. You mentioned the "batch" function. Just &lt;/SPAN&gt;discovered&lt;SPAN style="line-height: 1.5;"&gt; that as a good alternative to the "iterate," in the &lt;/SPAN&gt;model builder- thanks! I like it because it goes a lot faster. But what I still struggle with, is that batch is the output name. Is there anything like %name% possible in batch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 23:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716652#M10400</guid>
      <dc:creator>NicolasBeerli</dc:creator>
      <dc:date>2015-02-06T23:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716653#M10401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would probably use a Python script to "batch" process the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I also saw in your data is that the fields TW_SMUNDI_ and FL_SMUNDI_ are text field. The values in these fields should be converted (in the script) to double (float) to be able to calculate some statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just created a new featureclass and added a rectangle polygon that covers the entire area and did an intersect between the rectangle and the provided polygons. The 12 polygons converted to 97 polygons. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This intersect featureclass I used to do a simple test on the field BL_SMUNDI_:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I add two fields:&lt;UL&gt;&lt;LI&gt;XB_Keep (will be filled with value 1 for those polygons I want to keep) and&lt;/LI&gt;&lt;LI&gt;Mean_BL that will hold the mean value&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I loop through the polygons and create two dictionaries:&lt;UL&gt;&lt;LI&gt;dct_geo that will hold the JSON geometry (to check if a polygon already exists in the dictionary) plus a list of oid's that have the same geometry&lt;/LI&gt;&lt;LI&gt;dct_att that will hold the oid versus the value from the field BL_SMUNDI_&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;In the next loop I calculate the mean value for each unique geometry, using the list of oids and the related dictionary with oid and values&lt;/LI&gt;&lt;LI&gt;the result is written to a dictionary dct_res that holds the first oid of the unique geometry and the mean value calculated&lt;/LI&gt;&lt;LI&gt;The last cursor is to write those values back to the input featureclass&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

fc_in = r"C:\Forum\SpecieRasters\data.gdb\intersect"
# fc_out = r"C:\Forum\SpecieRasters\data.gdb\result01"

# fld1 = "TW_SMUNDI_" # text field!
fld2 = "BL_SMUNDI_"
# fld3 = "FL_SMUNDI_" # text field!

fld_keep = "XB_Keep"
fld_res = "Mean_BL"
if len(arcpy.ListFields(fc_in, wild_card=fld_keep)) == 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc_in, fld_keep, "LONG")
if len(arcpy.ListFields(fc_in, wild_card=fld_res)) == 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc_in, fld_res, "Double")

dct_geo = {}
dct_att = {}
flds = ("OID@", "SHAPE@", fld2)
with arcpy.da.SearchCursor(fc_in, flds) as curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oid = row[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = row[1]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; val = row[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dct_att[oid] = val
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j = polygon.JSON
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if j in dct_geo:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_oid = dct_geo&lt;J&gt;&lt;/J&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_oid.append(oid)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dct_geo&lt;J&gt; = lst_oid&lt;/J&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dct_geo&lt;J&gt; = [oid]&lt;/J&gt;
del row, curs

dct_res = {}
for j, lst_oid in dct_geo.items():
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_val = [dct_att[oid] for oid in lst_oid]
&amp;nbsp;&amp;nbsp;&amp;nbsp; tot = sum(lst_val)
&amp;nbsp;&amp;nbsp;&amp;nbsp; cnt = len(lst_val)
&amp;nbsp;&amp;nbsp;&amp;nbsp; mean = tot / float(cnt)
&amp;nbsp;&amp;nbsp;&amp;nbsp; dct_res[lst_oid[0]] = mean

flds = ("OID@", fld_keep, fld_res)
with arcpy.da.UpdateCursor(fc_in, flds) as curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if row[0] in dct_res:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[1] = 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[2] = dct_res[row[0]]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs.updateRow(row)
del row, curs&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you query the output featureclass using XB_Keep = 1 you and display on Mean_BL the result looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="after.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/59577_after.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;as opposed to drawing the overlapping input polygons on BL_SMUNDI_:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="before.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/59578_before.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I will adapt the code to make it a bit friendlier and to correct for the string input fields that hold values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716653#M10401</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T06:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716654#M10402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for showing me this solution! What I was wondering &lt;/P&gt;&lt;P&gt;1. Do you think that the intersecting is also possible with 1000 polygons? &lt;/P&gt;&lt;P&gt;2. Is there a good way to convert the product polygon (out of your calculations) back into raster with keeping all the calculated mean values? Because what I finally want to do with this data is a analysis whether there is a correlation between bodysizes and latitude or not (and I also going to test my data against climate data etc). What I need to conduct this analysis is to have cells with a exact geographic position and the mean bodysize. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2015 21:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716654#M10402</guid>
      <dc:creator>NicolasBeerli</dc:creator>
      <dc:date>2015-02-07T21:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716655#M10403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/115432"&gt;Nicolas Beerli&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;1. Do you think that the intersecting is also possible with 1000 polygons?&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I think it is possible, but there is only 1 way to find out... Let's try it!&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;2. Is there a good way to convert the product polygon (out of your calculations) back into raster with keeping all the calculated mean values?&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If you convert the resulting polygon featureclass, using each of the columns calculated (3), and specifying in the environment settings that the result should use the same extent as the input rasters and snap to the raster too, it will be OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2015 02:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716655#M10403</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-08T02:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716656#M10404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hi &lt;/SPAN&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="115432" data-objecttype="3" href="https://community.esri.com/people/Nico95" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;"&gt;Nicolas Beerli&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Could you attach a few input rasters, so I can adapt the code that I'm writing to work with your data and check some of the details?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Kind regards, Xander&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2015 19:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716656#M10404</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-08T19:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716657#M10405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;I think with Spatial Analyst it is possible to do the whole calculation in raster data model using the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Cell_Statistics/009z0000007q000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Cell Statistics&lt;/A&gt;‌‌‌ tool Peter mentioned. You can use the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Lookup/009z000000sn000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Lookup &lt;/A&gt;‌‌‌tool to recode values of your input rasters and create separate sets of rasters for each parameter like Body Length, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sketch of how I would try to do it (not tested and may not apply to your folder structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that most Spatial Analyst operations produce NoData cell whenever any input cell is NoData. You may want to replace NoData with zero for your calculation or explore the effects of ignore_nodata parameter of the Cell Statistics tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
arcpy.CheckOutExtension("Spatial")

in_raster_folder = r'c:\path\to\folder\with\all\rasters'
column = "Body Length"
out_folder = r'c:\path\to\folder\to\store\body_length'

# get list of all input rasters
arcpy.env.workdpsace = in_raster_folder
in_rasters = arcpy.ListRasters()

recoded_rasters = []
for ras in in_rasters:

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Recode the raster so that VALUE stores the desired variable
&amp;nbsp;&amp;nbsp;&amp;nbsp; lookedup = arcpy.sa.Lookup(ras, column)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # replace NoData with Zero
&amp;nbsp;&amp;nbsp;&amp;nbsp; recoded = arcpy.sa.Con(arcpy.sa.IsNull(lookedup), 0.0, lookedup)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # save the recoded raster to disk
&amp;nbsp;&amp;nbsp;&amp;nbsp; recoded_path = os.path.join(out_folder, os.path.basename(ras))
&amp;nbsp;&amp;nbsp;&amp;nbsp; recoded.save(recoded_path)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # remember all the recoded rasters so you can average them later
&amp;nbsp;&amp;nbsp;&amp;nbsp; recoded_rasters.append(recoded_path)

# calculate mean of all the recoded rasters
means = arcpy.sa.CellStatistics(recoded_rasters, "MEAN", "NO_DATA")
means.save(r'c:\path\to\save\mean\body_length')

arcpy.CheckInExtension("Spatial")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:41:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716657#M10405</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2021-12-12T06:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716658#M10406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/29681"&gt;Filip Král&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Lookup is a good way of creating a raster with the values of the attribute. I wonder if a Cell Statistics on 1000 rasters will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should however, &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; set the background to 0, since this will mess up the mean value (they will be included). The option "DATA" is the right option for CellStatistics keeping the NoData values in the separate rasters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other point is, in the input data 2 out of three columns do not have values, but strings. At least this was provided in the sample data. If this is representative for the input raster, they should be corrected for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2015 21:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716658#M10406</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-08T21:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716659#M10407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the correction, &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌‌‌, I see, of course including the zeros would increase N therefore the mean would be lower&amp;nbsp; since mean = sum(x_i)/N. The "DATA" option it is then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have doubts whether CellStatistics can handle 1000 rasters and would be curious to know what worked in the end for &lt;A href="https://community.esri.com/migrated-users/115432"&gt;Nicolas Beerli&lt;/A&gt;‌‌ .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2015 23:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716659#M10407</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2015-02-08T23:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716660#M10408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey thanks for all the suggestions... I am going to try what works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had also a new idea to solve the problem. The idea is to create a table like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.png" class="jive-image image-1" height="124" src="https://community.esri.com/legacyfs/online/60249_table.png" style="width: 197px; height: 124.23709677419356px;" width="197" /&gt; &lt;/P&gt;&lt;P&gt;Each column represents one species and each row one cell (100 * 100 km). In each cell I going to write whether a species is present (1) or absent. If I am somehow able to create such a table it is pretty easy to calculate the median, the mean or add any other information to each cell (when I add a other column, row).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do that, I am going to create for each raster cell a point feature (which has the similar ID like rows in my table).&lt;/P&gt;&lt;P&gt;What I was thinking is to have my species ranges all merged as polygon (without any measurements data in the attribute table). Somehow it should be possible to extract the present species into a point per raster?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table I could then import in R for further analysis. The Problem of course could be the size of this table (approximately 1000 columns * 7000 rows...) Somebody idea whether that works or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:43:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716660#M10408</guid>
      <dc:creator>NicolasBeerli</dc:creator>
      <dc:date>2015-02-09T15:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716661#M10409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;Here some of the (plain) rasters that I am working with (the body measurements I added later as join).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/sh/awgeiugv9tp3e2t/AAD1Z7od31qNsXgQc_AKzylea?dl=0" title="https://www.dropbox.com/sh/awgeiugv9tp3e2t/AAD1Z7od31qNsXgQc_AKzylea?dl=0"&gt;https://www.dropbox.com/sh/awgeiugv9tp3e2t/AAD1Z7od31qNsXgQc_AKzylea?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716661#M10409</guid>
      <dc:creator>NicolasBeerli</dc:creator>
      <dc:date>2015-02-09T15:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716662#M10410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to add the tables corresponding to the raster you uploaded too? That way I can have a look it the joining can be included in the process or that another method then the one I'm working on is more appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716662#M10410</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-09T16:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716663#M10411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could work... The table could be generated with the help of numpy arrays. Converting the rasters to numpy array is easy if the raster have the same extent (and number of rows and columns). Excel can have more than 16000 columns, so it should fit.... but I wonder if it is the best way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe evaluating another possibility is using Combine (before any join). This will create a raster that contains every unique combination of input rasters and a (in this case huge) attribute table. However, also the number of rasters may be a limitation for this process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716663#M10411</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-09T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716664#M10412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mmmm, perhaps Combine is not going to be the solution, since it supports only up to 20 rasters (would require more than 50 steps). The result is a raster with an attribute table holding all the species that occur (as you are looking for)...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CombineAttributes.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/60241_CombineAttributes.png" style="width: 620px; height: 304px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716664#M10412</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-09T16:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis of overlaying rasters</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716665#M10413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a pity this table looks exactly like what I want. &lt;/P&gt;&lt;P&gt;here again the link this time with the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/sh/6bqazy3z03x9bae/AACB5SO7NdSiDQ7pBQ3uhh9pa?dl=0" title="https://www.dropbox.com/sh/6bqazy3z03x9bae/AACB5SO7NdSiDQ7pBQ3uhh9pa?dl=0"&gt;Dropbox - sample raster&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 17:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/analysis-of-overlaying-rasters/m-p/716665#M10413</guid>
      <dc:creator>NicolasBeerli</dc:creator>
      <dc:date>2015-02-09T17:12:44Z</dc:date>
    </item>
  </channel>
</rss>

