<?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 Problems with raster calculator within model builder-ArcGIS 10 in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problems-with-raster-calculator-within-model/m-p/714089#M10353</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;BR /&gt;&lt;SPAN&gt;I'm attempting to use model builder to run iterations of a raster calculator routine.&amp;nbsp; However, there are a couple of issues:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. When I build the model and double-click the raster calculator portion of the flow chart, I get the old familiar map algebra window.&amp;nbsp; However, at this point I'm unable to drag rasters from ArcCatalog into the map algebra window.&amp;nbsp; I'm working around by opening raster calculator from ArcCatalog, configuring the algebra there and copying into the model builder instance.&amp;nbsp; Any ideas why I can't drag rasters directly to the map algebra window opened via model builder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The model will run properly the first time only.&amp;nbsp; Subsequent runs display the following ouput:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing (Raster Calculator): RasterCalculator ""%rasterout%" - "%dem.dem%"" C:\Images\rastermd &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Jun 22 17:53:45 2011&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"%rasterout%" - "%dem.dem%"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: rcexec() &amp;lt;type 'exceptions.TypeError'&amp;gt;: unsupported operand type(s) for -: 'str' and 'str'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Raster Calculator).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Wed Jun 22 17:53:45 2011 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once again, any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The exact same setup will run flawlessly when I run the raster calculator directly from ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2011 20:59:52 GMT</pubDate>
    <dc:creator>RobertMaynard</dc:creator>
    <dc:date>2011-06-22T20:59:52Z</dc:date>
    <item>
      <title>Problems with raster calculator within model builder-ArcGIS 10</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problems-with-raster-calculator-within-model/m-p/714089#M10353</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;BR /&gt;&lt;SPAN&gt;I'm attempting to use model builder to run iterations of a raster calculator routine.&amp;nbsp; However, there are a couple of issues:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. When I build the model and double-click the raster calculator portion of the flow chart, I get the old familiar map algebra window.&amp;nbsp; However, at this point I'm unable to drag rasters from ArcCatalog into the map algebra window.&amp;nbsp; I'm working around by opening raster calculator from ArcCatalog, configuring the algebra there and copying into the model builder instance.&amp;nbsp; Any ideas why I can't drag rasters directly to the map algebra window opened via model builder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The model will run properly the first time only.&amp;nbsp; Subsequent runs display the following ouput:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing (Raster Calculator): RasterCalculator ""%rasterout%" - "%dem.dem%"" C:\Images\rastermd &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Jun 22 17:53:45 2011&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"%rasterout%" - "%dem.dem%"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: rcexec() &amp;lt;type 'exceptions.TypeError'&amp;gt;: unsupported operand type(s) for -: 'str' and 'str'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Raster Calculator).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Wed Jun 22 17:53:45 2011 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once again, any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The exact same setup will run flawlessly when I run the raster calculator directly from ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 20:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problems-with-raster-calculator-within-model/m-p/714089#M10353</guid>
      <dc:creator>RobertMaynard</dc:creator>
      <dc:date>2011-06-22T20:59:52Z</dc:date>
    </item>
  </channel>
</rss>

