<?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: Divide raster by raster in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74993#M1031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have run into this same problem in ArcGIS 10, SP2.&amp;nbsp; This process works in ArcGIS 10, Windows XP, but does not seem to work on ArcGIS 10, SP2, Windows 7, 32-bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within a Raster Calculator tool I have Float (Band 4 - Band 3) / Float (Band 4 + Band 3).&amp;nbsp; This is NDVI.&amp;nbsp; Yes, I know there is an NDVI tool in the Image Analyst Window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can create a Python script with the NDVI sytnax and the process works correctly, however, within the ArcToolbox, Raster Calculator, I am returned with a single value.&amp;nbsp; Even if I add a scaling factor such as:&amp;nbsp; (Float (Band 4 - Band 3) / Float (Band 4 + Band 3) * 100) + 100.&amp;nbsp; I still receive a single value for all of my pixels.&amp;nbsp; This is telling me that there is something going wrong with the Raster calculator.&amp;nbsp; The output is a 32 bit floating point data type. I have tried GRID, Imagine format, and TIF.&amp;nbsp; Even if you do a simple division between Float(Band 4) / Float(Band 3), this is still a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe this is a bug or may be related to the Windows OS, but I have not found anyone who has solved this issue on Windows 7, 32-bit OS.&amp;nbsp; I ran into a similar issue with running the ISO cluster routine.&amp;nbsp; Here is this post and my sample image that you can try on this post:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/23726-iso-cluster-unsupervised-classification-ArcGIS-10-Windows-XP"&gt;http://forums.arcgis.com/threads/23726-iso-cluster-unsupervised-classification-ArcGIS-10-Windows-XP&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight would be appreciated, otherwise, I will probably put in a trouble ticket with ESRI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 18:08:18 GMT</pubDate>
    <dc:creator>NathanJennings</dc:creator>
    <dc:date>2011-09-14T18:08:18Z</dc:date>
    <item>
      <title>Divide raster by raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74991#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my basic knowledge in the GIS world. I have problems in dividing raster layer by raster. I have two raster layers (say layer A and B). Both layers have the same extent, projection, pixel size and pixel numbers. AND both have input integer. Value of layer A is always greater than value of layer B (in corresponding pixel). I tried to divide A by B and multiply by 100 using raster calculator in ArcGIS 9.2. The problem is here. I always get 0 and 100 (only two values) . In fact, I expected to have many values ranging from 0 to 100.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2011 21:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74991#M1029</guid>
      <dc:creator>DavidSmith4</dc:creator>
      <dc:date>2011-03-26T21:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Divide raster by raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74992#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are encountering integer division (read all about it).&amp;nbsp; To overcome this you need to cast one of the two grids to its floating point representation.&amp;nbsp; In version 10, this would be accomplished by using "float" either the tool or within the raster calculator.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2011 23:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74992#M1030</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-03-26T23:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Divide raster by raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74993#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have run into this same problem in ArcGIS 10, SP2.&amp;nbsp; This process works in ArcGIS 10, Windows XP, but does not seem to work on ArcGIS 10, SP2, Windows 7, 32-bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within a Raster Calculator tool I have Float (Band 4 - Band 3) / Float (Band 4 + Band 3).&amp;nbsp; This is NDVI.&amp;nbsp; Yes, I know there is an NDVI tool in the Image Analyst Window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can create a Python script with the NDVI sytnax and the process works correctly, however, within the ArcToolbox, Raster Calculator, I am returned with a single value.&amp;nbsp; Even if I add a scaling factor such as:&amp;nbsp; (Float (Band 4 - Band 3) / Float (Band 4 + Band 3) * 100) + 100.&amp;nbsp; I still receive a single value for all of my pixels.&amp;nbsp; This is telling me that there is something going wrong with the Raster calculator.&amp;nbsp; The output is a 32 bit floating point data type. I have tried GRID, Imagine format, and TIF.&amp;nbsp; Even if you do a simple division between Float(Band 4) / Float(Band 3), this is still a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe this is a bug or may be related to the Windows OS, but I have not found anyone who has solved this issue on Windows 7, 32-bit OS.&amp;nbsp; I ran into a similar issue with running the ISO cluster routine.&amp;nbsp; Here is this post and my sample image that you can try on this post:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/23726-iso-cluster-unsupervised-classification-ArcGIS-10-Windows-XP"&gt;http://forums.arcgis.com/threads/23726-iso-cluster-unsupervised-classification-ArcGIS-10-Windows-XP&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight would be appreciated, otherwise, I will probably put in a trouble ticket with ESRI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 18:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74993#M1031</guid>
      <dc:creator>NathanJennings</dc:creator>
      <dc:date>2011-09-14T18:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Divide raster by raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74994#M1032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just curious ... are these ESRI grids in a folder (ie c:\stuff) or in a gdb?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 18:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74994#M1032</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-09-14T18:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Divide raster by raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74995#M1033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, the image is a subset of a Landsat image in Imagine format that is in a folder (c:\temp, for example).&amp;nbsp; The link I posted just a few minutes ago has a zip file that contains this image if you want to take a look.&amp;nbsp; 6 bands in the image, unsigned integer values.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 18:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74995#M1033</guid>
      <dc:creator>NathanJennings</dc:creator>
      <dc:date>2011-09-14T18:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Divide raster by raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74996#M1034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No, the image is a subset of a Landsat image in Imagine format that is in a folder (c:\temp, for example).&amp;nbsp; The link I posted just a few minutes ago has a zip file that contains this image if you want to take a look.&amp;nbsp; 6 bands in the image, unsigned integer values.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI Confirmed my issue as a bug:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[#NIM073015&amp;nbsp; Raster calculator is giving incorrect output when dividing two image bands as floating point. ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This bug will now be reviewed by our development team, and will take further action as necessary to address this issue. For updates on this issue, please see the Esri Customer Care Portal by going to &lt;/SPAN&gt;&lt;A href="https://customers.esri.com"&gt;https://customers.esri.com&lt;/A&gt;&lt;SPAN&gt; or contact Esri Support Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 19:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/divide-raster-by-raster/m-p/74996#M1034</guid>
      <dc:creator>NathanJennings</dc:creator>
      <dc:date>2011-09-26T19:15:42Z</dc:date>
    </item>
  </channel>
</rss>

