<?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: Raster calculator too many values to unpack in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-too-many-values-to-unpack/m-p/463837#M6683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR 000539: Error running expression: rcexec() &amp;lt;type 'exceptions.ValueError'&amp;gt;: too many values to unpack.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As I am relatively inexperienced with arcgis I cannot figure out why it is doing this.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax you're showing is for the 9.3 raster calculator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 10.0 the Raster Calculator tool has a slightly different syntax. The brackets are no longer legal, but you can refer to layers in the map by name in quotes, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;"brdaflowacc" &amp;gt; 45000&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and set the output of the tool to be a raster named "mainChannel".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 05:25:11 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-04-04T05:25:11Z</dc:date>
    <item>
      <title>Raster calculator too many values to unpack</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-too-many-values-to-unpack/m-p/463836#M6682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use raster calculator to create a new raster from my flow accumulation data. I've changed the data range to two intervals so only the main channels are shown. What I want to do is create a new raster with this information. I am trying to alter this DEM to make it compatible with the CAESAR landscape evolution model, and this is one of the steps required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The instructions tell me to put the following calculation into raster calculator: [mainChannel]&amp;nbsp; = [flowAcc]&amp;nbsp; &amp;gt; 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As it is only an example I changed the equation to the following: [mainChannel]&amp;nbsp; = ["brdaflowacc"]&amp;nbsp; &amp;gt; 45000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It makes sense in theory since the main channels are all above 45000 however I get the following error when I try to make this calculation work&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: rcexec() &amp;lt;type 'exceptions.ValueError'&amp;gt;: too many values to unpack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I am relatively inexperienced with arcgis I cannot figure out why it is doing this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 03:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-too-many-values-to-unpack/m-p/463836#M6682</guid>
      <dc:creator>IsaacKelder</dc:creator>
      <dc:date>2012-04-03T03:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator too many values to unpack</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-too-many-values-to-unpack/m-p/463837#M6683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR 000539: Error running expression: rcexec() &amp;lt;type 'exceptions.ValueError'&amp;gt;: too many values to unpack.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As I am relatively inexperienced with arcgis I cannot figure out why it is doing this.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax you're showing is for the 9.3 raster calculator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 10.0 the Raster Calculator tool has a slightly different syntax. The brackets are no longer legal, but you can refer to layers in the map by name in quotes, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;"brdaflowacc" &amp;gt; 45000&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and set the output of the tool to be a raster named "mainChannel".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 05:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-too-many-values-to-unpack/m-p/463837#M6683</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-04-04T05:25:11Z</dc:date>
    </item>
  </channel>
</rss>

