<?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: arcgis cellstatistics (range) error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499309#M39198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I have checked my RList seriously&amp;nbsp;and&amp;nbsp;removed the 'X_3_3.tif', but the&amp;nbsp;problem still exists. Finally, I&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;scaled the values to integer (Int("X_2_3.tif" * 100))&amp;nbsp;&lt;SPAN&gt;then determining the range,&lt;/SPAN&gt; it works.&amp;nbsp;Thank you for your patience and help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2017 01:33:24 GMT</pubDate>
    <dc:creator>changkx</dc:creator>
    <dc:date>2017-07-20T01:33:24Z</dc:date>
    <item>
      <title>arcgis cellstatistics (range) error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499305#M39194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to&amp;nbsp;calculate the range sequence, the Python script as follow：&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;#ndvi_R = CellStatistics(RList, "RANGE", "DATA")&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;the results are 0, but when I run as follows, it's correct.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;ndvi_MAX = CellStatistics(RList, "MAXIMUM", "DATA")&lt;BR /&gt; ndvi_MIN = CellStatistics(RList, "MINIMUM", "DATA")&lt;BR /&gt; ndvi_R = ndvi_MAX - ndvi_MIN&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 02:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499305#M39194</guid>
      <dc:creator>changkx</dc:creator>
      <dc:date>2017-07-19T02:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis cellstatistics (range) error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499306#M39195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check your rlist since 0 is expected under one circumstance.&amp;nbsp; Your workaround is fine.. perhaps you have a nodata value in one of the rasters... too hard to tell from your description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;For statistic types Maximum, Minimum, Mean, Median, Majority, Minority and Sum, if a single raster is used as the input, the output cell values will be the same as the input cell values. For&lt;STRONG&gt; Range&lt;/STRONG&gt; and &lt;SPAN&gt;STD&lt;/SPAN&gt; the output cell values will &lt;STRONG&gt;all be 0&lt;/STRONG&gt;, and for Variety, all 1.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 03:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499306#M39195</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-19T03:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis cellstatistics (range) error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499307#M39196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;Thanks for your help, I&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;calculate one RList as follows alone, but the results are still 0. If it&amp;nbsp;exists a &lt;SPAN style="color: #ff0000;"&gt;nodata &lt;SPAN style="color: #333333;"&gt;value, the parameter ‘DATA’&amp;nbsp;was explained in the arcgis help.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;UL class="" style="color: #4d4d4d; background-color: #ffffff; font-size: 0.875em; margin-top: 1.71429em; margin-bottom: 1.5em; padding: 0px;"&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;DATA —At the processing cell location, if any of the input rasters has NoData, then that NoData value will be ignored. The statistics will be computed by only considering the cells with valid data. This is the default.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG alt="RList" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/363331_QQ截图20170719145138.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #262626; background-color: #ffffff;"&gt;I have attached the RList：&lt;A class="link-titled" href="https://drive.google.com/file/d/0B9yBpblltPayMjE5d0J6RDdqSFU/view?usp=sharing" title="https://drive.google.com/file/d/0B9yBpblltPayMjE5d0J6RDdqSFU/view?usp=sharing"&gt;ndvi_R.zip - Google Drive&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 07:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499307#M39196</guid>
      <dc:creator>changkx</dc:creator>
      <dc:date>2017-07-19T07:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis cellstatistics (range) error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499308#M39197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this weirdness with cell statistics has been reported before&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/179829"&gt;https://community.esri.com/thread/179829&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I will look at the rasters, but I suspect it is a nodata issue, an extent issue or similar related environment properties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I can confirm that the problem remains if the inputs are 32bit tiffs or 32 bit esri grids&lt;/LI&gt;&lt;LI&gt;Your workaround does the the job.&lt;/LI&gt;&lt;LI&gt;I haven't gone to the effort of converting to a lower bit level... that could be a task for someone else.&lt;/LI&gt;&lt;LI&gt;your band 3 is pretty strange... calculate statistics, try viewing without a stretched symbology and have a look at its histogram&lt;/LI&gt;&lt;LI&gt;try scaling the values to integer (ie &amp;nbsp; Int('band1'*100) ) then determining the range&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would file a case with tech support, especially in light of esri's default grid format being tiffs in recent versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 10:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499308#M39197</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-19T10:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis cellstatistics (range) error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499309#M39198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I have checked my RList seriously&amp;nbsp;and&amp;nbsp;removed the 'X_3_3.tif', but the&amp;nbsp;problem still exists. Finally, I&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;scaled the values to integer (Int("X_2_3.tif" * 100))&amp;nbsp;&lt;SPAN&gt;then determining the range,&lt;/SPAN&gt; it works.&amp;nbsp;Thank you for your patience and help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 01:33:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499309#M39198</guid>
      <dc:creator>changkx</dc:creator>
      <dc:date>2017-07-20T01:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis cellstatistics (range) error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499310#M39199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;glad it worked... I suspect this issue will arise again... bookmarking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 01:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-cellstatistics-range-error/m-p/499310#M39199</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-20T01:45:27Z</dc:date>
    </item>
  </channel>
</rss>

