<?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: multi line statement raster calculator in 10.0??? in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374320#M5267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tom - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the 10.0 release, the MOMA tool (Multiple Output Map Algebra) tool was retired in favor of the Raster Calculator.&amp;nbsp; You can execute simple single line map algebra statements or complex nested algebraic statements in the UI.&amp;nbsp; With full Python integration at 10.0/10.1, you can execute multi-line algebraic statements in the Python window or any Python IDE.&amp;nbsp; If you have any SOMA (Single Output Map Algebra) or MOMA tools in a 9.3.x release or earlier within a model, then they will execute in a 10.0 environment.&amp;nbsp; Hope this helps clarify the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2012 21:25:31 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2012-09-19T21:25:31Z</dc:date>
    <item>
      <title>multi line statement raster calculator in 10.0???</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374316#M5263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcGIS Help claims that it is possible to perform multi-line statements in the raster calculator but I have not been able to do so &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Building_complex_statements/00p60000000p000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Building_complex_statements/00p60000000p000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if this is a case of false advertising or if I'm missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My multi-line statement is relatively simple although I'm planning on eventually making it more complicated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;t1 = Raster(r"forest.tif")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;t2 = Raster(r"forest.tif") * 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;t1 + t2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Tom Dilts&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 20:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374316#M5263</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2012-09-19T20:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: multi line statement raster calculator in 10.0???</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374317#M5264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I forgot to add that I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Parsing error &amp;lt;type 'exceptions.IndentationError'&amp;gt;: unexpected indent (line &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (RasterCalculator).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 20:42:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374317#M5264</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2012-09-19T20:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: multi line statement raster calculator in 10.0???</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374318#M5265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tom - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the "&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000z8000000.htm"&gt;How Raster Calculator works&lt;/A&gt;&lt;SPAN&gt;", the tool is designed for single-line algebraic expressions.&amp;nbsp; The old 9.3 "Multi-Output Map Algebra" GP tool would do the syntax (somewhat) that you're looking for.&amp;nbsp; You can implement the multi-line expression within a Python Window if you wish, but here's the syntax I used in the Raster Calculator to get the desired output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OutRas= Raster("Viewshed") + (Raster("Elevation") * 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Define your output raster and you've got output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert LeClair&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri-Denver&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 20:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374318#M5265</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2012-09-19T20:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: multi line statement raster calculator in 10.0???</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374319#M5266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So multi-line is out in 10 except in the python window, but nested statements are in, right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 21:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374319#M5266</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2012-09-19T21:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: multi line statement raster calculator in 10.0???</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374320#M5267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tom - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the 10.0 release, the MOMA tool (Multiple Output Map Algebra) tool was retired in favor of the Raster Calculator.&amp;nbsp; You can execute simple single line map algebra statements or complex nested algebraic statements in the UI.&amp;nbsp; With full Python integration at 10.0/10.1, you can execute multi-line algebraic statements in the Python window or any Python IDE.&amp;nbsp; If you have any SOMA (Single Output Map Algebra) or MOMA tools in a 9.3.x release or earlier within a model, then they will execute in a 10.0 environment.&amp;nbsp; Hope this helps clarify the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 21:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374320#M5267</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2012-09-19T21:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: multi line statement raster calculator in 10.0???</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374321#M5268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it.&amp;nbsp; Thanks a bunch for your quick response.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 21:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374321#M5268</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2012-09-19T21:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: multi line statement raster calculator in 10.0???</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374322#M5269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ArcGIS Help claims that it is possible to perform multi-line statements in the raster calculator but I have not been able to do so &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Building_complex_statements/00p60000000p000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Building_complex_statements/00p60000000p000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'm wondering if this is a case of false advertising or if I'm missing something?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert has pretty much covered it, but I just wanted to point out it's not false advertising - the help page you linked to is not for the raster calculator. It's for map algebra in the arcpy Spatial Analyst module.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 23:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374322#M5269</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2012-09-19T23:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: multi line statement raster calculator in 10.0???</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374323#M5270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Robert has pretty much covered it, but I just wanted to point out it's not false advertising - the help page you linked to is not for the raster calculator. It's for map algebra in the arcpy Spatial Analyst module.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 10.x functional equilvalent of MOMA is to simply type the statements in the Python window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In some ways this is vastly superior to MOMA because you get integrated intellsense and tool help as you type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ModelBuilder, you can place multiple Raster Calculator tools in a single model, which is a similar workflow to what MOMA provided in 9.x.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 21:05:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multi-line-statement-raster-calculator-in-10-0/m-p/374323#M5270</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-09-20T21:05:25Z</dc:date>
    </item>
  </channel>
</rss>

