<?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: Model builder - automatic selection of quantiles for raster data in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872603#M1378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been attempting the above with no success. A value of zero is returned for any percentiles below 86%. Are there any requirements/preconditions for the raster data set?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2019 15:46:57 GMT</pubDate>
    <dc:creator>FinnRyley</dc:creator>
    <dc:date>2019-02-26T15:46:57Z</dc:date>
    <item>
      <title>Model builder - automatic selection of quantiles for raster data</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872601#M1376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to find values of quantile 5% and quantile 95% of my data. I know that I can find statistics using &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000m7000000"&gt;Get Raster Properties&lt;/A&gt;; but there is no possibility to get the quantile values of the data. Finally I have found the quantile values using &lt;A href="http://help.arcgis.com/de/arcgisdesktop/10.0/help/index.html#//009z000000sr000000"&gt;Reclassify&lt;/A&gt; option. I reclassified my data for three classes using Quantile as a method for classification with thresholds: 5, 95, and 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, here I have a problem, because I would like to apply the evaluated quantiles in &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002w00000001000000"&gt;Model Builder&lt;/A&gt; am when I change the input data I have to evaluate the qauntiles every time manually, because model builder is not doing this automatically. Is there some other way to evaluate quantiles which can be fully automatically used in Model Builder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for some suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 09:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872601#M1376</guid>
      <dc:creator>KarolinaKorzeniowska</dc:creator>
      <dc:date>2015-07-13T09:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder - automatic selection of quantiles for raster data</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872602#M1377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karolina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all I am not a statistician so when you wrote &lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;find values of quantile 5% and quantile 95% of my data&lt;/EM&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; I interpreted that as percentiles, so my following example may not be giving you the correct values! What it does show is how you compute values that the standard raster property tools do not return. By using the approach below you can compute the values you need and integrate them into model builder.&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;Below is a model with two Model only tools Calculate Value returning the 5% and 95% percentile of a raster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/117454_Capture.PNG" style="width: 620px; height: 459px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; line-height: 1.5;"&gt;for example,&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; line-height: 1.5;"&gt;I open the 95% percentile tool you can see the python code used to compute the value. The trick is to turn it into a numpy array and then you have access to many of the array processing functions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;IMG alt="Capture.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/117455_Capture.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt; has written many guides doing very clever stuff with numpy arrays, too clever for me!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 14:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872602#M1377</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2015-07-15T14:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder - automatic selection of quantiles for raster data</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872603#M1378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been attempting the above with no success. A value of zero is returned for any percentiles below 86%. Are there any requirements/preconditions for the raster data set?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 15:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872603#M1378</guid>
      <dc:creator>FinnRyley</dc:creator>
      <dc:date>2019-02-26T15:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder - automatic selection of quantiles for raster data</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872604#M1379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I have sourced the issue. How does one exclude the NoData values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 17:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872604#M1379</guid>
      <dc:creator>FinnRyley</dc:creator>
      <dc:date>2019-02-26T17:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder - automatic selection of quantiles for raster data</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872605#M1380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NoData values should be converted to None, &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/functions/rastertonumpyarray-function.htm"&gt;according to the doc.&lt;/A&gt;&amp;nbsp; I'd try this with a small dataset at the python prompt and look at the array on the numpy side to see if things are what you think they are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quantile breaks can be unexpected&amp;nbsp;when there are a lot ties (many cells with the same value) in your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 04:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-automatic-selection-of-quantiles-for/m-p/872605#M1380</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-02-27T04:40:20Z</dc:date>
    </item>
  </channel>
</rss>

