<?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 gp.Reclassify_sa (ERROR 010255: String remap must be used with a string field) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/gp-reclassify-sa-error-010255-string-remap-must-be/m-p/747286#M57778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am receiving the following message when executing my python script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010255: String remap must be used with a string field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My input raster is floating point and I would like to reclassify it in python using gp.Reclassify_sa. I build my remap up as a string, but this doesn't seem to work. How do I build and pass my remap for a floating point raster?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The relevant code extract is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;remap1 = "0 1.25 100000"
remap2 = "1.25 10 200000"
full_remap = remap1 + ";" + remap2
gp.Reclassify_sa(in_raster, "VALUE", full_remap, out_raster, "NODATA")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 09:11:57 GMT</pubDate>
    <dc:creator>MatthewBarlow</dc:creator>
    <dc:date>2013-11-27T09:11:57Z</dc:date>
    <item>
      <title>gp.Reclassify_sa (ERROR 010255: String remap must be used with a string field)</title>
      <link>https://community.esri.com/t5/python-questions/gp-reclassify-sa-error-010255-string-remap-must-be/m-p/747286#M57778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am receiving the following message when executing my python script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010255: String remap must be used with a string field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My input raster is floating point and I would like to reclassify it in python using gp.Reclassify_sa. I build my remap up as a string, but this doesn't seem to work. How do I build and pass my remap for a floating point raster?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The relevant code extract is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;remap1 = "0 1.25 100000"
remap2 = "1.25 10 200000"
full_remap = remap1 + ";" + remap2
gp.Reclassify_sa(in_raster, "VALUE", full_remap, out_raster, "NODATA")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 09:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-reclassify-sa-error-010255-string-remap-must-be/m-p/747286#M57778</guid>
      <dc:creator>MatthewBarlow</dc:creator>
      <dc:date>2013-11-27T09:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: gp.Reclassify_sa (ERROR 010255: String remap must be used with a string field)</title>
      <link>https://community.esri.com/t5/python-questions/gp-reclassify-sa-error-010255-string-remap-must-be/m-p/747287#M57779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe you have to use a remap-object:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000sr000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000sr000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
full_remap = RemapRange([[0, 1.25, 100000],[1.25, 10, 200000]])
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-reclassify-sa-error-010255-string-remap-must-be/m-p/747287#M57779</guid>
      <dc:creator>FabianBlau</dc:creator>
      <dc:date>2021-12-12T07:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: gp.Reclassify_sa (ERROR 010255: String remap must be used with a string field)</title>
      <link>https://community.esri.com/t5/python-questions/gp-reclassify-sa-error-010255-string-remap-must-be/m-p/747288#M57780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks but I am using arcgiscripting with gp.Reclassify_sa and the following appears to be valid for only arcpy? Please correct me if I am wrong... this is frustrating me to no end!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Maybe you have to use a remap-object:&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000sr000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000sr000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
full_remap = RemapRange([[0, 1.25, 100000],[1.25, 10, 200000]])
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-reclassify-sa-error-010255-string-remap-must-be/m-p/747288#M57780</guid>
      <dc:creator>MatthewBarlow</dc:creator>
      <dc:date>2021-12-12T07:46:58Z</dc:date>
    </item>
  </channel>
</rss>

