<?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: Raster Calculator in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102300#M1414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Float(Float("L5015041_04120090613_B40.TIF" - "L5015041_04120090613_B30.TIF") / Float("L5015041_04120090613_B40.TIF" + "L5015041_04120090613_B30.TIF"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2012 10:01:07 GMT</pubDate>
    <dc:creator>AnnetteWielemaker</dc:creator>
    <dc:date>2012-07-26T10:01:07Z</dc:date>
    <item>
      <title>Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102293#M1407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to calculate NDVI using Raster Calculator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://i.imgur.com/xOCaM.jpg"&gt;&lt;IMG src="http://i.imgur.com/xOCaM.jpg" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;But result has only three values (and three colors): -1, 0 and +1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 06:27:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102293#M1407</guid>
      <dc:creator>WersusBarckowich</dc:creator>
      <dc:date>2012-07-24T06:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102294#M1408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You must first convert your .TIF bands from an integer to a float.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The integer using an 8 bit pixel type for DN values from 0 - 255 in whole numbers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The float (32 bit) allows for decimals. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The map algebra is &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Float ("%file.tif%")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 14:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102294#M1408</guid>
      <dc:creator>SheaMeyer</dc:creator>
      <dc:date>2012-07-24T14:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102295#M1409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how can I do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 15:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102295#M1409</guid>
      <dc:creator>WersusBarckowich</dc:creator>
      <dc:date>2012-07-24T15:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102296#M1410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use the same exact NDVI equation in raster calculator as you have now, but instead of the band 3 and band 4 .tif you are currently using from landsat, replace them with the output after converting them to a float. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can convert them in raster calculator with the expression i.e. &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Float ("%Band 3.tif%")&lt;/SPAN&gt;&lt;SPAN&gt; and repeat for band 4. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can use the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Float&lt;/SPAN&gt;&lt;SPAN&gt; tool in the toolbox &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Spatial Analyst -&amp;gt; Math.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I recommend converting them to GRID files as well when converting to the float. Simply enough, just don't add the .tif extension when you name the output raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102296#M1410</guid>
      <dc:creator>SheaMeyer</dc:creator>
      <dc:date>2012-07-24T16:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102297#M1411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try to add "%L5015041_04120090613_B30.TIF%" in raster calc, but I have error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: RasterCalculator "%L5015041_04120090613_B30.TIF%" C:\Users\Admin\Documents\ArcGIS\Default.gdb\rastercalc2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Tue Jul 24 21:27:02 2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"%L5015041_04120090613_B30.TIF%"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: rcexec() &amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'str' object has no attribute 'save'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (RasterCalculator).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Tue Jul 24 21:27:02 2012 (Elapsed Time: 0,00 seconds)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102297#M1411</guid>
      <dc:creator>WersusBarckowich</dc:creator>
      <dc:date>2012-07-24T16:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102298#M1412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try to calculate statistics for the .tif file. Might be why it can't find a "table."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102298#M1412</guid>
      <dc:creator>SheaMeyer</dc:creator>
      <dc:date>2012-07-24T16:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102299#M1413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try to calculate statistics for the .tif file. Might be why it can't find a "table."&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*Attribute I mean not table&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102299#M1413</guid>
      <dc:creator>SheaMeyer</dc:creator>
      <dc:date>2012-07-24T16:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102300#M1414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Float(Float("L5015041_04120090613_B40.TIF" - "L5015041_04120090613_B30.TIF") / Float("L5015041_04120090613_B40.TIF" + "L5015041_04120090613_B30.TIF"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 10:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102300#M1414</guid>
      <dc:creator>AnnetteWielemaker</dc:creator>
      <dc:date>2012-07-26T10:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator for NDVI</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102301#M1415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We do this all the time in our GIS class.&amp;nbsp; If you input image bands are integer, ArcGIS will default to an output of Integer.&amp;nbsp; Since NDVI has a range of -1 to +1, you end up with only -1,0, +1.&amp;nbsp; To fix this, simply multiply one of the layers in the equation by 1.0, with the decimal. ArcGIS then defualts to float for the output.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 15:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102301#M1415</guid>
      <dc:creator>PeterHarrel</dc:creator>
      <dc:date>2012-10-10T15:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102302#M1416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using version 10 or higher, you can also create the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009t000000v2000000"&gt;NDVI output&lt;/A&gt;&lt;SPAN&gt; with the mosaic dataset as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102302#M1416</guid>
      <dc:creator>JeffreySwain</dc:creator>
      <dc:date>2012-10-11T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator for NDVI</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102303#M1417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a feature of Python 2.x. When you divide two integers, you will will get integer output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; 1 / 2
0
&amp;gt;&amp;gt;&amp;gt; 1 / 2.0
0.5
&amp;gt;&amp;gt;&amp;gt; float(1) / 2
0.5
 &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(post #1000!)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator/m-p/102303#M1417</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T06:18:36Z</dc:date>
    </item>
  </channel>
</rss>

