<?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: Reclass Field Calculator problem in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223982#M17308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working now. I have not realised that the spacing is so important. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2017 14:12:41 GMT</pubDate>
    <dc:creator>MartaPo</dc:creator>
    <dc:date>2017-08-10T14:12:41Z</dc:date>
    <item>
      <title>Reclass Field Calculator problem</title>
      <link>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223979#M17305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having a massive problem with running this script in ArcGIS 10.3 Field Calculator Python&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def Reclass(CLASS):&lt;BR /&gt;&amp;nbsp;if CLASS=="2":&lt;BR /&gt;&amp;nbsp; return "2a"&lt;BR /&gt;&amp;nbsp;elif CLASS=="3"&lt;BR /&gt;&amp;nbsp; return "3a"&lt;BR /&gt;&amp;nbsp;else:&lt;BR /&gt;&amp;nbsp; return (CLASS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Marta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366500" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/366500_pastedImage_1.png" style="width: 620px; height: 194px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 09:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223979#M17305</guid>
      <dc:creator>MartaPo</dc:creator>
      <dc:date>2017-08-10T09:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reclass Field Calculator problem</title>
      <link>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223980#M17306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Reclass&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CLASS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; CLASS&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"2a"&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; CLASS&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"3a"&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; CLASS&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223980#M17306</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T10:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reclass Field Calculator problem</title>
      <link>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223981#M17307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Xander's suggestion doesn't work, it would be helpful if you explain what exactly isn't working, including posting the error message(s).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223981#M17307</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-08-10T13:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reclass Field Calculator problem</title>
      <link>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223982#M17308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working now. I have not realised that the spacing is so important. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:12:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223982#M17308</guid>
      <dc:creator>MartaPo</dc:creator>
      <dc:date>2017-08-10T14:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reclass Field Calculator problem</title>
      <link>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223983#M17309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome, glad it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 11:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reclass-field-calculator-problem/m-p/223983#M17309</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-08-11T11:16:44Z</dc:date>
    </item>
  </channel>
</rss>

