<?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 Help with Raster Calculator in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-raster-calculator/m-p/6081#M117</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 have created a 'Depth to Water Table' layer across the County of Norfolk using the raster Minus function to take Water Table Contour values away from values in a DEM. Naturally the two datasets don't quite match up, the resulting raster has values between -10 and 70 (metres). I am using this layer to define risk, so negative values (suggesting the water table is above the surface of the land) are just as bad as a water table that sits at the surface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am trying to use the Raster Calculator (Spatial Analyst Tools, Map Alegbra) to convert any negative values to zero and leave all positive values as they are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using the below expression to try and achieved this, but I have fairly limited experience writing in Python terms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Con( "Depth to Water Table" , "Depth to Water Table" , 0 , Value &amp;gt;= 0 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a range of errors come up (see the screen shot). The only one I can really identify is the "'Value' is not defined" error, which when looking at my original raster has the 'Open Attribute Table' button greyed out, I tried Calculating Statistics (Data Management Tools, Raster, Raster Properties) to create an attribute table, while the operation was successful this didn't create an attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas where I am going wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20131[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2012 12:51:16 GMT</pubDate>
    <dc:creator>MichaelR</dc:creator>
    <dc:date>2012-12-21T12:51:16Z</dc:date>
    <item>
      <title>Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-raster-calculator/m-p/6081#M117</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 have created a 'Depth to Water Table' layer across the County of Norfolk using the raster Minus function to take Water Table Contour values away from values in a DEM. Naturally the two datasets don't quite match up, the resulting raster has values between -10 and 70 (metres). I am using this layer to define risk, so negative values (suggesting the water table is above the surface of the land) are just as bad as a water table that sits at the surface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am trying to use the Raster Calculator (Spatial Analyst Tools, Map Alegbra) to convert any negative values to zero and leave all positive values as they are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using the below expression to try and achieved this, but I have fairly limited experience writing in Python terms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Con( "Depth to Water Table" , "Depth to Water Table" , 0 , Value &amp;gt;= 0 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a range of errors come up (see the screen shot). The only one I can really identify is the "'Value' is not defined" error, which when looking at my original raster has the 'Open Attribute Table' button greyed out, I tried Calculating Statistics (Data Management Tools, Raster, Raster Properties) to create an attribute table, while the operation was successful this didn't create an attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas where I am going wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20131[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 12:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-raster-calculator/m-p/6081#M117</guid>
      <dc:creator>MichaelR</dc:creator>
      <dc:date>2012-12-21T12:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-raster-calculator/m-p/6082#M118</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;SPAN&gt;I am not sure if you have already figured it out. Here is an expression you can try in raster calculator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Con("Depth to Water Table" &amp;lt;= 0,0,"Depth to Water Table")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Con("Depth to Water Table" &amp;gt;= 0,"Depth to Water Table",0)&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;SPAN&gt;Prasanta.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 22:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-raster-calculator/m-p/6082#M118</guid>
      <dc:creator>PrasantaBhattarai</dc:creator>
      <dc:date>2013-01-03T22:06:32Z</dc:date>
    </item>
  </channel>
</rss>

