<?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: Using Reclassify in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328635#M68637</link>
    <description>&lt;P&gt;If you want ESRI to set the classes for you using some good algorithms you can try Slice&amp;nbsp;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/slice.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/slice.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 12:12:22 GMT</pubDate>
    <dc:creator>mody_buchbinder</dc:creator>
    <dc:date>2023-09-14T12:12:22Z</dc:date>
    <item>
      <title>Using Reclassify in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328256#M68626</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one raster and would like to transform all values between -0,9 - 0 like 1 value, and 0 - 0,9 like NoData.&lt;/P&gt;&lt;P&gt;How can I to this in python?&lt;/P&gt;&lt;P&gt;Thank´s&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 13:42:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328256#M68626</guid>
      <dc:creator>SoratoMarques</dc:creator>
      <dc:date>2023-09-13T13:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using Reclassify in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328460#M68633</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/reclassify.htm" target="_blank"&gt;Reclassify (Spatial Analyst)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See the code examples for the spatial analyst extension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 19:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328460#M68633</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-09-13T19:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Reclassify in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328468#M68635</link>
      <description>&lt;P&gt;Have you used the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/3d-analyst/reclassify.htm" target="_self"&gt;arcpy.ddd.Reclassify&lt;/A&gt; tool yet?&lt;/P&gt;&lt;P&gt;From the docs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
# Set Environment
arcpy.env = r"&amp;lt;PATH TO ENVIRONMENT&amp;gt;"

# Set local variables
inRaster = "landuse"
field = "VALUE"
remapString = "1 9;2 8;3 1;4 6;5 3;6 2;7 1"
outRaster = "C:/output/reclass3d"

# Execute Reclassify
arcpy.ddd.Reclassify(inRaster, field, remapString, outRaster, "DATA")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case you would do something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

arcpy.env = r"&amp;lt;PATH TO ENVIRONMENT&amp;gt;"

remap = "-0.9 0 1"
raster = r"&amp;lt;PATH TO RASTER&amp;gt;"
field = "&amp;lt;RECLASS FIELDNAME&amp;gt;"
out_raster = r"&amp;lt;PATH TO OUTPUT RASTER&amp;gt;"

arcpy.ddd.Reclassify(raster, field, remap, out_raster, "NODATA")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "&lt;STRONG&gt;NODATA" &lt;/STRONG&gt;flag at the end will write any values outside the provided remap range with NoData instead of the original values, so in your case you only define the remap for the lower end and just don't map the values over 0&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 19:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328468#M68635</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2023-09-13T19:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Reclassify in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328635#M68637</link>
      <description>&lt;P&gt;If you want ESRI to set the classes for you using some good algorithms you can try Slice&amp;nbsp;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/slice.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/slice.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 12:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-reclassify-in-python/m-p/1328635#M68637</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2023-09-14T12:12:22Z</dc:date>
    </item>
  </channel>
</rss>

