<?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 Reclassify fails using ArcPy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/raster-reclassify-fails-using-arcpy/m-p/716919#M55564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to reclassify a raster to a single elevation band - and have the rest of the data as NODATA.&amp;nbsp; I am using the below code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;BR /&gt;from arcpy import env&lt;BR /&gt;import os&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;overflowvalue = 894&lt;BR /&gt;&lt;BR /&gt;resname = '2965'&lt;BR /&gt;&lt;BR /&gt;minvalue = overflowvalue - 28&lt;BR /&gt;maxvalue = overflowvalue - 87&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;remapString = "{} {} 1".format(maxvalue, minvalue)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;env.workspace = "D:\projects\Reservoir\\Data.gdb"&lt;BR /&gt;inRaster = 'Elevation'&lt;BR /&gt;outraster = 't_{}'.format(resname.replace(" ","_"))&lt;BR /&gt;&lt;BR /&gt;arcpy.CheckOutExtension("3D")&lt;BR /&gt;print " - Reclassifying"&lt;BR /&gt;&lt;BR /&gt;arcpy.Reclassify_3d(inRaster,field,remapString,outraster, "NODATA")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventually I want to put this in a loop to run it on 45 different overflowvalue elevations.&amp;nbsp; I am getting the following error when running as a stand-alone script:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;D:\projects\Reservoir&amp;gt;test2.py&lt;BR /&gt;&amp;nbsp;- Reclassifying&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "D:\projects\Reservoir\test2.py", line 24, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Reclassify_3d(inRaster,field,remapString,outraster, "NODATA")&lt;BR /&gt;&amp;nbsp; File "c:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\ddd.py", line 4467&lt;BR /&gt;, in Reclassify&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;BR /&gt;arcgisscripting.ExecuteError: ERROR 999999: Error executing function.&lt;BR /&gt;The table was not found. [VAT_t_2965]&lt;BR /&gt;No spatial reference exists.&lt;BR /&gt;Failed to execute (Reclassify).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated - using Python 2.7, ArcGIS 10.5.1&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2019 18:42:40 GMT</pubDate>
    <dc:creator>DarrylKlassen1</dc:creator>
    <dc:date>2019-07-09T18:42:40Z</dc:date>
    <item>
      <title>Raster Reclassify fails using ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/raster-reclassify-fails-using-arcpy/m-p/716919#M55564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to reclassify a raster to a single elevation band - and have the rest of the data as NODATA.&amp;nbsp; I am using the below code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;BR /&gt;from arcpy import env&lt;BR /&gt;import os&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;overflowvalue = 894&lt;BR /&gt;&lt;BR /&gt;resname = '2965'&lt;BR /&gt;&lt;BR /&gt;minvalue = overflowvalue - 28&lt;BR /&gt;maxvalue = overflowvalue - 87&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;remapString = "{} {} 1".format(maxvalue, minvalue)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;env.workspace = "D:\projects\Reservoir\\Data.gdb"&lt;BR /&gt;inRaster = 'Elevation'&lt;BR /&gt;outraster = 't_{}'.format(resname.replace(" ","_"))&lt;BR /&gt;&lt;BR /&gt;arcpy.CheckOutExtension("3D")&lt;BR /&gt;print " - Reclassifying"&lt;BR /&gt;&lt;BR /&gt;arcpy.Reclassify_3d(inRaster,field,remapString,outraster, "NODATA")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventually I want to put this in a loop to run it on 45 different overflowvalue elevations.&amp;nbsp; I am getting the following error when running as a stand-alone script:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;D:\projects\Reservoir&amp;gt;test2.py&lt;BR /&gt;&amp;nbsp;- Reclassifying&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "D:\projects\Reservoir\test2.py", line 24, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Reclassify_3d(inRaster,field,remapString,outraster, "NODATA")&lt;BR /&gt;&amp;nbsp; File "c:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\ddd.py", line 4467&lt;BR /&gt;, in Reclassify&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;BR /&gt;arcgisscripting.ExecuteError: ERROR 999999: Error executing function.&lt;BR /&gt;The table was not found. [VAT_t_2965]&lt;BR /&gt;No spatial reference exists.&lt;BR /&gt;Failed to execute (Reclassify).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated - using Python 2.7, ArcGIS 10.5.1&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-reclassify-fails-using-arcpy/m-p/716919#M55564</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2019-07-09T18:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Reclassify fails using ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/raster-reclassify-fails-using-arcpy/m-p/716920#M55565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found&amp;nbsp; my problem - needed to convert my raster to an INTEGER from a floating point raster.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-reclassify-fails-using-arcpy/m-p/716920#M55565</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2019-07-09T18:45:48Z</dc:date>
    </item>
  </channel>
</rss>

