<?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 Raster calculator expressions - not transferable to 10.1? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/raster-calculator-expressions-not-transferable-to/m-p/242148#M18829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another question!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am in the process of updating a bunch of scripts written not by me, that work under arc 9.2, to work under 10.1.&amp;nbsp; The original author used many raster calculator string expressions that were then executed like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.SingleOutputMapAlgebra_sa(stringExpression, rasterOutput)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand correctly, there is no string expression input based way to do this, in 10.1.&amp;nbsp; I need to create the equivalent operations with raster objects, as seen here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v000000wt000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v000000wt000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct?&amp;nbsp;&amp;nbsp; I want to make sure, before I go reinventing the wheel, that I need to do this.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 18:04:55 GMT</pubDate>
    <dc:creator>CyndyBresloff</dc:creator>
    <dc:date>2013-05-08T18:04:55Z</dc:date>
    <item>
      <title>Raster calculator expressions - not transferable to 10.1?</title>
      <link>https://community.esri.com/t5/python-questions/raster-calculator-expressions-not-transferable-to/m-p/242148#M18829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another question!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am in the process of updating a bunch of scripts written not by me, that work under arc 9.2, to work under 10.1.&amp;nbsp; The original author used many raster calculator string expressions that were then executed like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.SingleOutputMapAlgebra_sa(stringExpression, rasterOutput)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand correctly, there is no string expression input based way to do this, in 10.1.&amp;nbsp; I need to create the equivalent operations with raster objects, as seen here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v000000wt000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v000000wt000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct?&amp;nbsp;&amp;nbsp; I want to make sure, before I go reinventing the wheel, that I need to do this.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 18:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-calculator-expressions-not-transferable-to/m-p/242148#M18829</guid>
      <dc:creator>CyndyBresloff</dc:creator>
      <dc:date>2013-05-08T18:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator expressions - not transferable to 10.1?</title>
      <link>https://community.esri.com/t5/python-questions/raster-calculator-expressions-not-transferable-to/m-p/242149#M18830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If I understand correctly, there is no string expression input based way to do this, in 10.1.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SingleOutputMapAlgebra is still supported, I assume for backwards compatibility. i.e.&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; import arcpy
&amp;gt;&amp;gt;&amp;gt; print&amp;nbsp; arcpy.__path__
['c:\\Program Files (x86)\\ArcGIS\\Desktop10.1\\arcpy\\arcpy']
&amp;gt;&amp;gt;&amp;gt; print arcpy.gp.SingleOutputMapAlgebra
&amp;lt;function &amp;lt;lambda&amp;gt; at 0x1748C3B0&amp;gt;
&amp;gt;&amp;gt;&amp;gt; import arcgisscripting
&amp;gt;&amp;gt;&amp;gt; gp=arcgisscripting.create()
&amp;gt;&amp;gt;&amp;gt; gp=arcgisscripting.create(10.1)
&amp;gt;&amp;gt;&amp;gt; print gp.singleoutputmapalgebra
&amp;lt;Tool: 'Single Output Map Algebra'&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However... I find the new raster object map algebra syntax to be much easier to use and much more flexible. Also, it's more future proof than relying on something that may not be available later on.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-calculator-expressions-not-transferable-to/m-p/242149#M18830</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-12-11T12:08:16Z</dc:date>
    </item>
  </channel>
</rss>

