<?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: diversity index in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259130#M848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe he isn't checking his mail during these times.&amp;nbsp; The message you left is routed to their email&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2020 10:41:55 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2020-05-01T10:41:55Z</dc:date>
    <item>
      <title>diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259122#M840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;BR /&gt;I would like to use the &lt;STRONG&gt;shanon diversity index&lt;/STRONG&gt; to calculate the diversity (number of years) of cleared areas as an indicator for shifting cultivation. I'm working with ArcGIS Pro.&lt;BR /&gt;I've downloaded this&amp;nbsp;&lt;A href="https://www.arcgis.com/home/item.html?id=11caf84c98d04d498cf40d0e478f9f13"&gt;Diversity Tool&lt;/A&gt;&amp;nbsp;and tried to run it. Unfortunately, it didn't work. &lt;BR /&gt;Can someone explain to me why it failed to work?&lt;/P&gt;&lt;P&gt;Would there be other alternatives to calculate the shanon diversity index in ArcGIS Pro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="414" src="https://community.esri.com/legacyfs/online/490087_pastedImage_4.png" width="352" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you see the raster information of the input data.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="299" src="https://community.esri.com/legacyfs/online/490086_pastedImage_3.png" width="295" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support!&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 13:59:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259122#M840</guid>
      <dc:creator>StephanKaegi</dc:creator>
      <dc:date>2020-04-27T13:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259123#M841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not used the Diversity Tool but I did note a problem with the output raster path file name ("K6_06.04.202\Default"). In the output path file name, you should in general not include any spaces or non-text characters, such as&amp;nbsp; % or @. A hyphen may be interpreted as a minus. You have used a full stop in the path file name which could be misinterpreted by any script such as Diversity Tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best to try and use a short file path with text only characters.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 19:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259123#M841</guid>
      <dc:creator>MervynLotter</dc:creator>
      <dc:date>2020-04-27T19:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259124#M842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer! I changed the output raster file name but the Diversity Tool did not work. Is there an alternative?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 09:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259124#M842</guid>
      <dc:creator>StephanKaegi</dc:creator>
      <dc:date>2020-04-29T09:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259125#M843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;contact the author on the link you posted would be the best bet.&amp;nbsp; Perhaps there are unlisted requirements or version limitations not posted on the page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 09:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259125#M843</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-04-29T09:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259126#M844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did download and install the Diversity Tool and I did get it to successfully run in Pro 2.5. It is a nice tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some advice to running this script.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure that the map projection is the same as the raster projection. The first time I ran this tool it failed because of this.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Zoom in to a smaller area at first to just test the script. Set your extent in the Environments setting. If it works, then expand to your area of interest.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;Mervyn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 10:31:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259126#M844</guid>
      <dc:creator>MervynLotter</dc:creator>
      <dc:date>2020-04-29T10:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259127#M845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mervyn&lt;BR /&gt;Thank you very much for your answer.&lt;BR /&gt;I have taken into account your two advises for the calculation. &lt;BR /&gt;Now the following has happened: with a small processing extent, the tool has worked. But with the whole grid I got the message &amp;gt; memory error (see picture below). Do you know what this could be? (I still have over 100GB on my hard disk, but maybe it's the cash memory or the RAM?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="231" src="https://community.esri.com/legacyfs/online/490570_pastedImage_1.png" width="402" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 10:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259127#M845</guid>
      <dc:creator>StephanKaegi</dc:creator>
      <dc:date>2020-05-01T10:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259128#M846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;Thanks for the advice. I did write a comment but got no answer from the author. Is there any other possibility to contact the author?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 10:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259128#M846</guid>
      <dc:creator>StephanKaegi</dc:creator>
      <dc:date>2020-05-01T10:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259129#M847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;memory error is referring to ram not hard disk space&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 10:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259129#M847</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-05-01T10:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259130#M848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe he isn't checking his mail during these times.&amp;nbsp; The message you left is routed to their email&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 10:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/259130#M848</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-05-01T10:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: diversity index</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/1089343#M2461</link>
      <description>&lt;P&gt;Stephan&lt;/P&gt;&lt;P&gt;For some reason I missed your question.&amp;nbsp; I suspect the problem has to do with the size of your input raster and the size of the neighborhood.&amp;nbsp; The combination makes for a really large footprint in memory due to the way the numpy ndimage.generic_filter works and the fact that I am applying an in memory loop that, for practical purposes, is about Image rows X Image columns X neighborhood width X neighborhood height X size in bytes of your pixel values.&amp;nbsp; In your case this is 9238 x 9271 x 167 x 167 x 2 = 4.4G... I think.&amp;nbsp; &amp;nbsp;This is a fair amount of RAM and depending on OS version and available memory could be the problem.&amp;nbsp; Try running the tool with a neighborhood of 5x5 as a test.&amp;nbsp; If this works&amp;nbsp; you can start scaling up the neighborhood until it breaks.&amp;nbsp; The other solution would be to reduce the resolution of the source image.&amp;nbsp; These ideas only apply if the issue is caused by running out of memory.&amp;nbsp; I hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 16:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/diversity-index/m-p/1089343#M2461</guid>
      <dc:creator>BobGerlt</dc:creator>
      <dc:date>2021-08-16T16:50:59Z</dc:date>
    </item>
  </channel>
</rss>

