<?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: Con tool expression error in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-con-tool-expression-error/m-p/594306#M8652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a ArcGIS 10 user and I am trying to calculate between a series of points the equidistant lines on a cost surface. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For Point1 and Point2 I have calculated the cost surfaces 1_Cost and 2_Cost. Now I want to create a new raster that gives the value "1" to raster cells that are "closer" to Point1 and "2" to those closer to Point2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to do this with the Raster Calculater (Spatial Analyst) tool, but I keep getting syntax errors. If I understand correctly the syntax that I should use in the Raster Calculator looks like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Con (in_conditional_raster, in_true_raster_or_constant, {in_false_raster_or_constant}, {where_clause}) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I get an expression error when I enter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Con ("Cost1", "1", {"2"}, {"Cost1" &amp;lt; "Cost2"})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would the correct syntax look like? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your efforts!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 21:49:43 GMT</pubDate>
    <dc:creator>Vincentvan_Exel</dc:creator>
    <dc:date>2011-10-06T21:49:43Z</dc:date>
    <item>
      <title>Raster Calculator: Con tool expression error</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-con-tool-expression-error/m-p/594306#M8652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a ArcGIS 10 user and I am trying to calculate between a series of points the equidistant lines on a cost surface. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For Point1 and Point2 I have calculated the cost surfaces 1_Cost and 2_Cost. Now I want to create a new raster that gives the value "1" to raster cells that are "closer" to Point1 and "2" to those closer to Point2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to do this with the Raster Calculater (Spatial Analyst) tool, but I keep getting syntax errors. If I understand correctly the syntax that I should use in the Raster Calculator looks like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Con (in_conditional_raster, in_true_raster_or_constant, {in_false_raster_or_constant}, {where_clause}) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I get an expression error when I enter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Con ("Cost1", "1", {"2"}, {"Cost1" &amp;lt; "Cost2"})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would the correct syntax look like? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your efforts!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 21:49:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-con-tool-expression-error/m-p/594306#M8652</guid>
      <dc:creator>Vincentvan_Exel</dc:creator>
      <dc:date>2011-10-06T21:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator: Con tool expression error</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-con-tool-expression-error/m-p/594307#M8653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The curly braces indicate optional parameters and are not part of the syntax, this is documented in the help - &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/002t/002t00000011000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/002t/002t00000011000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The correct syntax would be something like: Con ( "Cost1" &amp;lt; "Cost2", "1", "2")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 02:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-con-tool-expression-error/m-p/594307#M8653</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2011-10-11T02:24:11Z</dc:date>
    </item>
  </channel>
</rss>

