<?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 Identify clusters that meet a threshold value in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92498#M3162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dzaks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given a raster dataset, I am looking to identify clusters comprised of the smallest number of grid cells that meet a given threshold value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible? Any ideas on how to accomplish this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 20:42:52 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2010-05-05T20:42:52Z</dc:date>
    <item>
      <title>Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92498#M3162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dzaks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given a raster dataset, I am looking to identify clusters comprised of the smallest number of grid cells that meet a given threshold value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible? Any ideas on how to accomplish this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 20:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92498#M3162</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-05-05T20:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92499#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...clusters comprised of the smallest number of grid cells that meet a given threshold value.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you elaborate on what this might mean?&amp;nbsp; If by "meet a threshold value" you mean either "have values exceeding a given constant" or "have values equaling a given constant" (it's unclear which is intended), then just select all such grid cells: there's no question of clustering and no question of finding a "smallest number."&amp;nbsp; Thus some clarification of your criterion would be helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 20:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92499#M3163</guid>
      <dc:creator>WilliamHuber</dc:creator>
      <dc:date>2010-05-05T20:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92500#M3164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dzaks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given a raster dataset, I am looking to identify clusters of X number of cells (or less) whose values sum up to a certain number. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e. The output would spatially identify clusters in the dataset where each cluster is comprised of 20 cells (or less) and the sum of those cells is 1000.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 21:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92500#M3164</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-05-05T21:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92501#M3165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/geoprocessing/index.cfm?fa=codeGalleryDetails&amp;amp;scriptId=16021"&gt;Partitioning tools&lt;/A&gt;&lt;SPAN&gt; to achieve your work flow. But these tools work only with point features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;So you can use &lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Raster_to_Point_%28Conversion%29"&gt;Raster to Point&lt;/A&gt; tool to convert your raster to points along with attributes.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use the "Create groups based on attribute values" tool within the Partitioning Tools toolbox to get the clusters&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use &lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Point_to_Raster_%28Conversion%29"&gt;Point To Raster&lt;/A&gt; tool to convert the clustered points to a raster.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deelesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 01:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92501#M3165</guid>
      <dc:creator>DeeleshMandloi</dc:creator>
      <dc:date>2010-05-06T01:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92502#M3166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: whuber&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Given a raster dataset, I am looking to identify clusters of X number of cells (or less) whose values sum up to a certain number. &lt;BR /&gt; &lt;BR /&gt;i.e. The output would spatially identify clusters in the dataset where each cluster is comprised of 20 cells (or less) and the sum of those cells is 1000.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks; that helps.&amp;nbsp; However, the problem is still not well defined, because there are (infinitely) many ways to define what a "cluster" is.&amp;nbsp; Implicitly, there is a sense of nearness involved.&amp;nbsp; Can 20 cells form a cluster provided they are "close enough," or do you require that they be contiguous?&amp;nbsp; If so, are cells contiguous only when they share an edge, or can diagonally adjacent cells also be considered contiguous?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once that is settled, a second problem is that the solutions will not be unique: you will potentially find many overlapping groups of cells that satisfy your criteria.&amp;nbsp; Thus, you need to impose additional conditions to determine exactly which groups should be chosen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a point of departure for thinking (and playing around with the software if you like), consider the possibilities afforded by focal statistics.&amp;nbsp; When a focal sum using a neighborhood of 20 or fewer cells exceeds 1000, you have found the center of a potential "cluster" (although there might still be contiguity questions).&amp;nbsp; Thus, you could run focal sums of various small neighborhoods to detect possible clusters.&amp;nbsp; That's easy and quick.&amp;nbsp; You can broaden your search by looking at focal means of slightly larger neighborhoods: indeed, &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;any&lt;/SPAN&gt;&lt;SPAN&gt; neighborhood, of any size or shape, whose average value exceeds 1000/20 = 50 could be considered a "cluster."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I notice that I interpreted your "threshold" to be a value that should be &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;exceeded&lt;/SPAN&gt;&lt;SPAN&gt; by a cluster's sum.&amp;nbsp; If you are looking for clusters that sum &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;exactly&lt;/SPAN&gt;&lt;SPAN&gt; to the threshold, then unless there is something special about your values or the structure of your grid or your definition of "cluster," forget it: this is an NP-hard problem and the most you can hope for is to find some research software or approximate solutions that find clusters in extremely small grids.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately, how you formulate and solve this problem depends on how you intend to use these clusters, but since you haven't shared that information with us, I cannot recommend particular approaches or software solutions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The old forums contain detailed discussions of similar questions.&amp;nbsp; Some creative searching might ferret out additional useful information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, you should be leery of solutions that convert the grid to points (even though that approach offers some capabilities not available with grid-based analysis in ArcGIS), unless your grid is very small: such solutions are likely to take impossible amounts of computing resources and time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 15:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92502#M3166</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-05-06T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92503#M3167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dzaks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bill, thanks for the thoughtful response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While I intended to leave the question somewhat open ended, the question I am working on is flexible enough to allow for multiple approaches and a range of how a "cluster" can be interpreted. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The purpose of the analysis is to identify regions that have a high density of manure feedstocks as an input to anaerobic digesters for electricity production. Dense clusters (where transport costs would be low) would be highly suitable for a digester, while areas with feedstocks that are less dense would incur higher transport costs and be less viable. For the sake of discussion, the sum of cells within the cluster do not need to meet an exact amount, but act as a guide to differentiate between transport costs of feedstocks from various locations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am in the process of trying the point-based method suggested above and after 8 hours, am about 60% done &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 20:18:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92503#M3167</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-05-06T20:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92504#M3168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The focal mean will do a good job and, provided the neighborhood is not too large, will take just seconds to compute :).&amp;nbsp; You can start up a new ArcGIS process, open the grid, and get the job done while you're waiting for the remaining 40% to finish.&amp;nbsp; Then you can experiment with alternative neighborhood sizes to explore a spectrum of possible solutions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 00:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92504#M3168</guid>
      <dc:creator>WilliamHuber</dc:creator>
      <dc:date>2010-05-07T00:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92505#M3169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dzaks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Deelesh-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After running the script on the set of points (converted from raster), there seems to be horizontal and diagonal striations that are artifacts of the algorithm.&amp;nbsp; Can you provide any documentation on how the clusters are chosen and how the search function decides what cell to "look" at next?&amp;nbsp; Below is a link to some of my output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.flickr.com/photos/davidzaks/4598359975/"&gt;http://www.flickr.com/photos/davidzaks/4598359975/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Bill - don't worry, I am trying the focal tools as well...)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 15:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92505#M3169</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-05-11T15:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92506#M3170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The tool uses the Spatial Order and Collocate tools (provided in the same toolbox). These two tools are python script tools, so you can view their source to get an idea of what's going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First the model runs the Spatial Order tool. This tool generates a peano curve based on the extent of the input points. More info on peano curve that the tool implements is at this &lt;/SPAN&gt;&lt;A href="http://www2.isye.gatech.edu/~jjb/mow/mow.html"&gt;link&lt;/A&gt;&lt;SPAN&gt;. The pseudo code for the algorithm is also available &lt;/SPAN&gt;&lt;A href="http://www2.isye.gatech.edu/~jjb/mow/mow.pdf"&gt;here&lt;/A&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the Spatial order tool is run it populates a field with values ranging between 0 and 1. The idea here is if you sort the table based on these values your input points will be sorted based on proximity to each other. The collocate tool uses the sorted points and then groups them until the capacity value is exceeded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deelesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 02:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92506#M3170</guid>
      <dc:creator>DeeleshMandloi</dc:creator>
      <dc:date>2010-05-13T02:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92507#M3171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ferranferrer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using partition tools and need support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i run Partition tools -I have added a iterate feature by field 'geo_county', the model stop and show this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PYTHON ERRORS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback Info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\FERRAN\SOFT\0 GIS\SIG EXTENSIONS\DISTRICTING ARCGIS\AS16021\PartitioningTools\Scripts\Collocate.py", line 128, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if count % (int(0.05 * tot_features)) == 0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type 'exceptions.ZeroDivisionError'&amp;gt;: integer division or modulo by zero&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is a turnaround to this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your attention,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ferran&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 20:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92507#M3171</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-15T20:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Identify clusters that meet a threshold value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92508#M3172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;I'm using partition tools and need support.&lt;BR /&gt;&lt;BR /&gt;When i run Partition tools -I have added a iterate feature by field 'geo_county', the model stop and show this error.&lt;BR /&gt;&lt;BR /&gt;PYTHON ERRORS:&lt;BR /&gt;Traceback Info:&lt;BR /&gt;&amp;nbsp; File "C:\FERRAN\SOFT\0 GIS\SIG EXTENSIONS\DISTRICTING ARCGIS\AS16021\PartitioningTools\Scripts\Collocate.py", line 128, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if count % (int(0.05 * tot_features)) == 0:&lt;BR /&gt;&lt;BR /&gt;Error Info:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type 'exceptions.ZeroDivisionError'&amp;gt;: integer division or modulo by zero&lt;BR /&gt;&lt;BR /&gt;Is a turnaround to this?&lt;BR /&gt;&lt;BR /&gt;Thanks for your attention,&lt;BR /&gt;&lt;BR /&gt;Ferran&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See your duplicate thread...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if there are other errors in this script, probably not since I think you said you got some output before it crashed; however, clearly this is an error in the use of Python's modulus operator.&amp;nbsp; In the event of tot_features under 20, an unhandled error occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Think you said you had limited experience w/ Python, but concerning the use of this operator in conjunction with the progressor functions----&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...the general idea here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Understanding the progress dialog box in script tools &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » Creating tools » Creating tools with Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000002w000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000002w000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...useful samples here (demonstrating use of the modulus operator):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Controlling the progress dialog box &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » Creating tools » Creating tools with Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Controlling_the_progress_dialog_box/001500000032000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Controlling_the_progress_dialog_box/001500000032000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(the 9.3 samples):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Writing_messages_in_script_tools"&gt;http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Writing_messages_in_script_tools&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 23:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/identify-clusters-that-meet-a-threshold-value/m-p/92508#M3172</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2012-10-17T23:37:35Z</dc:date>
    </item>
  </channel>
</rss>

