<?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 Conditional in 10 in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/conditional-in-10/m-p/543109#M7844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having trouble understanding the syntax of Con using Python in version 10.&amp;nbsp; Previously, I used the following to determine cells with inudation greater than 0.1 feet and set those cell values to the inundation depth by subtracted the ground elevation from the water elevation.&amp;nbsp; Cells that didn't meet this condition are set to null.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inund = con(wtr_grid - ground_grid &amp;gt; 0.1, wtr_grid - ground_grid, setnull(wtr_grid))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to do the same in 10 using Python, but can not seem to make Con perform in a similar way.&amp;nbsp; Has any one worked through this type of Conditional statement?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 13:56:29 GMT</pubDate>
    <dc:creator>DavidMick</dc:creator>
    <dc:date>2013-03-27T13:56:29Z</dc:date>
    <item>
      <title>Conditional in 10</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/conditional-in-10/m-p/543109#M7844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having trouble understanding the syntax of Con using Python in version 10.&amp;nbsp; Previously, I used the following to determine cells with inudation greater than 0.1 feet and set those cell values to the inundation depth by subtracted the ground elevation from the water elevation.&amp;nbsp; Cells that didn't meet this condition are set to null.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inund = con(wtr_grid - ground_grid &amp;gt; 0.1, wtr_grid - ground_grid, setnull(wtr_grid))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to do the same in 10 using Python, but can not seem to make Con perform in a similar way.&amp;nbsp; Has any one worked through this type of Conditional statement?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/conditional-in-10/m-p/543109#M7844</guid>
      <dc:creator>DavidMick</dc:creator>
      <dc:date>2013-03-27T13:56:29Z</dc:date>
    </item>
  </channel>
</rss>

