<?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 Reclass attribute table, problem in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/reclass-attribute-table-problem/m-p/627782#M35468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an attibute table with values from -1 to +1. I need to reclassify them in 5 classes from 1 ... 5. &lt;BR /&gt;Class 1 should be from -1 to -0.6, Class 2 from -0.6 to -0.2, .... Class 5 from 0,6 to 1.&lt;/P&gt;&lt;P&gt;And how can I exclude values out of my range from -1 to 1, in case I forgot something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an idea how to write this in VBscript or Phython? I sit here, with no idea of any languages, for the whole afternoon, Help and examples didnt help ne, neither google.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably a question of seconds if u know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 15:49:44 GMT</pubDate>
    <dc:creator>BastianMüller</dc:creator>
    <dc:date>2014-07-29T15:49:44Z</dc:date>
    <item>
      <title>Reclass attribute table, problem</title>
      <link>https://community.esri.com/t5/data-management-questions/reclass-attribute-table-problem/m-p/627782#M35468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an attibute table with values from -1 to +1. I need to reclassify them in 5 classes from 1 ... 5. &lt;BR /&gt;Class 1 should be from -1 to -0.6, Class 2 from -0.6 to -0.2, .... Class 5 from 0,6 to 1.&lt;/P&gt;&lt;P&gt;And how can I exclude values out of my range from -1 to 1, in case I forgot something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an idea how to write this in VBscript or Phython? I sit here, with no idea of any languages, for the whole afternoon, Help and examples didnt help ne, neither google.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably a question of seconds if u know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/reclass-attribute-table-problem/m-p/627782#M35468</guid>
      <dc:creator>BastianMüller</dc:creator>
      <dc:date>2014-07-29T15:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reclass attribute table, problem</title>
      <link>https://community.esri.com/t5/data-management-questions/reclass-attribute-table-problem/m-p/627783#M35469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually this would be relatively quick and easy to do by hand, just do select by attribute,&lt;/P&gt;&lt;P&gt;do a field calculator on your class field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd made a new field for putting the class numbers in, select python as your parser, and clcik the check mark to show the code block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the prelogic script code put in&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14066503288383553" jivemacro_uid="_14066503288383553"&gt;
&lt;P&gt;def Reclass(Value):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if ( Value &amp;lt;= 1) and ( Value &amp;gt;= .6) :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; elif ( Value &amp;lt; .6 ) and ( Value &amp;gt;= .2):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; elif ( Value &amp;lt; .2) and ( Value &amp;gt;= -.2):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp; elif (Value &amp;lt; -.2) and ( Value &amp;gt;= -.6):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp; elif ( Value &amp;lt; -.6) and ( Value &amp;gt;= -1):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the block below it put:&lt;/P&gt;&lt;P&gt;Reclass("doubleclickonthefieldyouneedhere")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your field in the Reclass parentheses should be between exclamation points, not quotes, and be the fields that has your original values in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 16:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/reclass-attribute-table-problem/m-p/627783#M35469</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-07-29T16:15:04Z</dc:date>
    </item>
  </channel>
</rss>

