<?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: Error 000539 running Raster Calulator in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418953#M5887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the inputs are model variables&amp;nbsp;they should have percents around them so the input paths or layer names will be handled correctly. When you use the Raster Calculator dialog instead of typing in layer names in the tool, the percents should appear for you. One of those cases (like SQL expressions) where using the UI can save you a lot of suffering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"%shadowmap_1%"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"%shadowmap_2%"&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also suggest using the &lt;STRONG&gt;Cell Statistics&lt;/STRONG&gt; tool - which will be a lot easier to work (and faster) than the raster calculator if you are simply adding rasters together, especially many rasters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you did that, you&amp;nbsp;could use a submodel to generate the list of rasters (using an iterator) so you don't need to add 145 rasters to your model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 18:00:59 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2016-09-19T18:00:59Z</dc:date>
    <item>
      <title>Error 000539 running Raster Calulator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418949#M5883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am trying to combine a few rasters together and getting the 000539 error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked out a few forums for solutions but could not resolve the issue. I know it has something to do with Python not being able to communicate with Arc, but I cant find the solution to my own error anywhere online. Can someone interpret the message and provide a possible solution please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executing (Raster Calculator): RasterCalculator ""shadowmap_1" + "shadowmap_2" + "shadowmap_3" + "shadowmap_4" + "shadowmap_5"" C:\Users\Mihai\Desktop\Shade_Analysis\March20\ShadowAnalysis2.gdb\sum_shadowmap_temp&lt;BR /&gt;Start Time: Tue Aug 30 21:54:54 2016&lt;BR /&gt;Raster(r"shadowmap_1") + Raster(r"shadowmap_2") + Raster(r"shadowmap_3") + Raster(r"shadowmap_4") + Raster(r"shadowmap_5")&lt;BR /&gt;ERROR 000539: Error running expression: rcexec() &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 5, in rcexec&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\sa\Functions.py", line 4329, in Plus&lt;BR /&gt; in_raster_or_constant2)&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\sa\Utils.py", line 53, in swapper&lt;BR /&gt; result = wrapper(*args, **kwargs)&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\sa\Functions.py", line 4326, in Wrapper&lt;BR /&gt; ["Plus", in_raster_or_constant1, in_raster_or_constant2])&lt;BR /&gt;RuntimeError: ERROR 999998: Unexpected Error.&lt;/P&gt;&lt;P&gt;Failed to execute (Raster Calculator).&lt;BR /&gt;Failed at Tue Aug 30 21:54:54 2016 (Elapsed Time: 0.26 seconds)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 02:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418949#M5883</guid>
      <dc:creator>MihaiGrosu</dc:creator>
      <dc:date>2016-08-31T02:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000539 running Raster Calulator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418950#M5884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;they all share the same extent.... correct?&lt;/P&gt;&lt;P&gt;the output filename is too long if they are esri grids&lt;/P&gt;&lt;P&gt;did you try to just add 2? if it worked, add one more&lt;/P&gt;&lt;P&gt;the spatial analyst extension is toggle on (customize extensions, toggle on)&lt;/P&gt;&lt;P&gt;just a start&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 02:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418950#M5884</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-31T02:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000539 running Raster Calulator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418951#M5885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes they are all allocated in the same GDB&lt;/P&gt;&lt;P&gt;I narrowed my output filename to 9 letters&lt;/P&gt;&lt;P&gt;Been trying with a small batch as a test (out of 145 rasters)&lt;/P&gt;&lt;P&gt;Extension is on (Spatial Analyst)&lt;/P&gt;&lt;P&gt;Yet I get the same error&lt;/P&gt;&lt;P&gt;I even tried this on another computer, hoping that its just my machine that causes this issue, but I get the same error.&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;P.S. I have also tried running the raster calculator tool on its own and got the same error message.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="218854" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/218854_error_msg.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 22:50:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418951#M5885</guid>
      <dc:creator>MihaiGrosu</dc:creator>
      <dc:date>2016-08-31T22:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000539 running Raster Calulator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418952#M5886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, if you can't communicate with arc* in any way, then you have a bad install.&lt;/P&gt;&lt;P&gt;Provide information on that.&lt;/P&gt;&lt;P&gt;Do you use a separate python IDE? &amp;nbsp;Did you try to install a different version?&lt;/P&gt;&lt;P&gt;Can you go to your IDE and do an &amp;nbsp; ... &amp;nbsp;import arcpy &amp;nbsp;....&lt;/P&gt;&lt;P&gt;If it doesn't work, then the issues are related to the installs.&lt;/P&gt;&lt;P&gt;The only solutions that I saw relating to that error message involved reinstallations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;nbsp;&lt;A class="link-titled" href="http://support.esri.com/technical-article/000011928" title="http://support.esri.com/technical-article/000011928"&gt;Error: ERROR 000539: Error running expression: rcexec()&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 23:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418952#M5886</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-31T23:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000539 running Raster Calulator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418953#M5887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the inputs are model variables&amp;nbsp;they should have percents around them so the input paths or layer names will be handled correctly. When you use the Raster Calculator dialog instead of typing in layer names in the tool, the percents should appear for you. One of those cases (like SQL expressions) where using the UI can save you a lot of suffering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"%shadowmap_1%"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"%shadowmap_2%"&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also suggest using the &lt;STRONG&gt;Cell Statistics&lt;/STRONG&gt; tool - which will be a lot easier to work (and faster) than the raster calculator if you are simply adding rasters together, especially many rasters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you did that, you&amp;nbsp;could use a submodel to generate the list of rasters (using an iterator) so you don't need to add 145 rasters to your model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:00:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418953#M5887</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-09-19T18:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000539 running Raster Calulator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418954#M5888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are simply trying to do mathematical operations on one&amp;nbsp;raster &lt;BR /&gt;(convert from feet to meters OR meters to feet, etc...) or&lt;/P&gt;&lt;P&gt;on two rasters: (addition, subtraction, multiplication, or division),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then just used the ArcToolbox &amp;gt; Spatial Analyst Tools &amp;gt; Math:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Plus&lt;/LI&gt;&lt;LI&gt;Minus&lt;/LI&gt;&lt;LI&gt;Times&lt;/LI&gt;&lt;LI&gt;Divide&lt;BR /&gt;&lt;BR /&gt;For example,&amp;nbsp;&lt;BR /&gt;&lt;H1 class="" style="color: #0079c1; background-color: #ffffff; font-weight: 300; font-size: 1.69949rem; margin: 0px 0px 0.775rem;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/346211_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;BR /&gt;or&lt;/H1&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/346212_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 21:26:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418954#M5888</guid>
      <dc:creator>Dr_Jason_VanHorn</dc:creator>
      <dc:date>2017-04-11T21:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000539 running Raster Calulator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418955#M5889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also worth mentioning: the Cell Statistics tool is a good choice for adding a list of rasters (and it has the handy option to ignore NoData).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 21:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418955#M5889</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-04-13T21:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000539 running Raster Calulator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418956#M5890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also experienced this Error Code 000539 and fixed it by ensuring that all input rasters were in the same projection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 16:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/error-000539-running-raster-calulator/m-p/418956#M5890</guid>
      <dc:creator>GarretDuffy</dc:creator>
      <dc:date>2019-03-04T16:14:30Z</dc:date>
    </item>
  </channel>
</rss>

