<?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: Con in arcPy fails where the Con tool  in ArcMap succeeds in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/con-in-arcpy-fails-where-the-con-tool-nbsp-in/m-p/583613#M45757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My bad, I didn't need Con in the end - Reclassify does everything I need.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2013 09:39:31 GMT</pubDate>
    <dc:creator>ChrisJohnson5</dc:creator>
    <dc:date>2013-09-26T09:39:31Z</dc:date>
    <item>
      <title>Con in arcPy fails where the Con tool  in ArcMap succeeds</title>
      <link>https://community.esri.com/t5/python-questions/con-in-arcpy-fails-where-the-con-tool-nbsp-in/m-p/583612#M45756</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'm new to python, so apologies if i'm missing something obvious.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a raster that was created from a text file, using MakeXYEventLayer_management (using British National Grid Spatial Reference) and FeatureToRaster_conversion (1000m cell size).&amp;nbsp; It displays fine in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the Con tool (ArcToolbox - Spatial Analyst Tools - Conditional) in ArcMap, with the raster mentioned above as the input, "VALUE &amp;gt;= 150" as the Expression, 1 as the true value, the false value left blank, and just accepting the default output raster, it works, the cells over 150 have value of 1 and the other cells are not included in the output raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my arcPy script, which has worked with other raster files (one noteable difference is these other rasters were integer rasters, whereas the raster created above is a floating point raster), the following line is failing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MaskRaster = Con(Raster(RasterLayer),1,"", "VALUE&amp;gt;={0}".format(ThresholdValue))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010416: Error in setting raster table filter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be gratefully received&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 09:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/con-in-arcpy-fails-where-the-con-tool-nbsp-in/m-p/583612#M45756</guid>
      <dc:creator>ChrisJohnson5</dc:creator>
      <dc:date>2013-09-26T09:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Con in arcPy fails where the Con tool  in ArcMap succeeds</title>
      <link>https://community.esri.com/t5/python-questions/con-in-arcpy-fails-where-the-con-tool-nbsp-in/m-p/583613#M45757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My bad, I didn't need Con in the end - Reclassify does everything I need.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 09:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/con-in-arcpy-fails-where-the-con-tool-nbsp-in/m-p/583613#M45757</guid>
      <dc:creator>ChrisJohnson5</dc:creator>
      <dc:date>2013-09-26T09:39:31Z</dc:date>
    </item>
  </channel>
</rss>

