<?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: Applying a simple sum using Python in the 'Raster Calculator' in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316824#M24631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you attempting to run a script in PythonWin or IDLE?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Neither, from what I can tell. I'm in ArcGIS10 with the Raster Calculator open. All three raster layers are in the .gdb and await the simple function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll keep trying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, it's working now... User error. Thanks chaps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 13:28:45 GMT</pubDate>
    <dc:creator>CliveCartwright</dc:creator>
    <dc:date>2012-05-11T13:28:45Z</dc:date>
    <item>
      <title>Applying a simple sum using Python in the 'Raster Calculator'</title>
      <link>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316820#M24627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's Friday and I'm getting nowhere looking through the forum(s). So, here's hoping...?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got 3 rasters that need to be mangled through the following sum using the Raster Calculator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;("mean_curv" x "mean_curv") - (("plan"-"prof") x ("plan"-"prof") x 0.5) = Output Raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure I used to do this using the old VB, but my head hurts now. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 12:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316820#M24627</guid>
      <dc:creator>CliveCartwright</dc:creator>
      <dc:date>2012-05-11T12:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a simple sum using Python in the 'Raster Calculator'</title>
      <link>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316821#M24628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Clive,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the error you are receiving when you attempt to execute the equation in the Raster Calculator?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316821#M24628</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-05-11T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a simple sum using Python in the 'Raster Calculator'</title>
      <link>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316822#M24629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Clive,&lt;BR /&gt;&lt;BR /&gt;What is the error you are receiving when you attempt to execute the equation in the Raster Calculator?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It comes out with the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000989: Python syntax error: Parsing error &amp;lt;type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'exceptions.SyntaxError'&amp;gt;:invalid syntax (line1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Then a big hand comes out from behind the monitor and slaps me across the top of my head. It's beginning to upset me now. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316822#M24629</guid>
      <dc:creator>CliveCartwright</dc:creator>
      <dc:date>2012-05-11T13:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a simple sum using Python in the 'Raster Calculator'</title>
      <link>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316823#M24630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Raster Calculator needs to be executed in Desktop or Model Builder.&amp;nbsp; See &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000z7000000.htm"&gt;here&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;The Raster Calculator tool is intended&amp;nbsp; for use in the ArcGIS Desktop application only as a GP tool dialog box&amp;nbsp; or in ModelBuilder. It is not&amp;nbsp; intended for use in scripting and is not&amp;nbsp; available in the ArcPy Spatial Analyst module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you attempting to run a script in PythonWin or IDLE?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:21:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316823#M24630</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-05-11T13:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a simple sum using Python in the 'Raster Calculator'</title>
      <link>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316824#M24631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you attempting to run a script in PythonWin or IDLE?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Neither, from what I can tell. I'm in ArcGIS10 with the Raster Calculator open. All three raster layers are in the .gdb and await the simple function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll keep trying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, it's working now... User error. Thanks chaps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316824#M24631</guid>
      <dc:creator>CliveCartwright</dc:creator>
      <dc:date>2012-05-11T13:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a simple sum using Python in the 'Raster Calculator'</title>
      <link>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316825#M24632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you send a screen shot of your Raster Calculator dialog?&amp;nbsp; Also, what are the properties of your raster datasets?&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI GRID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;32 bit floating point&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, what is the coordinate system of the raster datasets?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316825#M24632</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-05-11T13:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a simple sum using Python in the 'Raster Calculator'</title>
      <link>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316826#M24633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;several suggestions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;nbsp; type as little as possible in the raster calculator, select available buttons&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2&amp;nbsp; I think x should be *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3&amp;nbsp; ensure that there are spaces between gridnames and operators, which be automatic if you select buttons&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4&amp;nbsp; Output Raster will fail since there is a space and it is on the wrong side of the equal sign&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Give some of these ideas a try&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:38:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applying-a-simple-sum-using-python-in-the-raster/m-p/316826#M24633</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-05-11T13:38:25Z</dc:date>
    </item>
  </channel>
</rss>

