<?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: How to create a new variable in GIS in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183042#M1093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered breaking down the process into different fields, even manually with queries and using the field calculator to provide the reclassed values for the various components?&amp;nbsp; Once you have your base fields created you could concatenate them into a final classification.&amp;nbsp; This would avoid scripts altogether and unless you plan to do this numerous times, the manual process of reclassification and concatenation would ultimately be faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2017 02:00:12 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-03-22T02:00:12Z</dc:date>
    <item>
      <title>How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183037#M1088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I wanted to create a new variable out of existing ones, the same idea as creating dummy variable. I have my data in shapefile as follows:&lt;/P&gt;&lt;P&gt;metro_cities_names, metro_pop, &amp;nbsp;typology_type. I wanted to recreate new variables from them as follows:&lt;/P&gt;&lt;P&gt;from Metro_pop i want to create a variable called metro_size less than 500, 500-1000000, 1000000-2000000 etc&lt;/P&gt;&lt;P&gt;From typology_type &amp;nbsp;I want to create a variable called typogy_type which will have four level: 1 = Black in low poverty, 2= Black in high poverty, 3= Latinos in low poverty, 4= Latinos in high poverty.&lt;/P&gt;&lt;P&gt;From metro-cities_names i want to create a variable called Regional_type where I will be able to categorize these 100 metro cities into &amp;nbsp;regions e.g Northeast, Midwest, south and west.&lt;/P&gt;&lt;P&gt;I know how to do them in SPSS but I hate it, plus It would be easy for me to run my OLS in Arcmap than SPSS.&lt;/P&gt;&lt;P&gt;Thanks a lot for your input&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 01:16:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183037#M1088</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T01:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183038#M1089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/23969"&gt;ABDALLA MOHAMED&lt;/A&gt; ,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I wanted to create a new variable out of existing ones, the same idea as creating dummy variable. I have my data in shapefile as follows:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;By "variable", are you saying you want new fields with the new value representing the various values in the field currently?&amp;nbsp; OR are these temporary values for calculations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you thought about maybe moving your shapefiles into a file GDB? If you are keeping them as shapefiles, you may want to review &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/adding-a-field-in-a-shapefile-in-arccatalog.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/adding-a-field-in-a-shapefile-in-arccatalog.htm"&gt;Working with fields in shapefiles by adding a field in ArcCatalog—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to look are using Attribute domains...&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/domains/an-overview-of-attribute-domains.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/domains/an-overview-of-attribute-domains.htm"&gt;A quick tour of attribute domains—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Attribute domains are rules that describe the legal values of a field type, providing a method for enforcing data integrity"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR maybe subtypes &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/subtypes/an-overview-of-subtypes.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/subtypes/an-overview-of-subtypes.htm"&gt;A quick tour of subtypes—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Subtypes are a subset of features in a feature class, or objects in a table, that share the same attributes. They are used as a method to categorize your data."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are planning on createing new fields and calculating new values, are you planning on doing this manually and with field calculator (basically a one time thing) or are you needing to script this?&amp;nbsp; If scripting, what do you wan to use for development?&amp;nbsp; Model builder or something like Python (my recommendation).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answers to these questions will help the community get you started in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(and sorry, I don't know what OLS is, which for those that do know, it may answer some of the above ??)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 01:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183038#M1089</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-03-22T01:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183039#M1090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-statistics-toolbox/ordinary-least-squares.htm"&gt; ordinary least squares &lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 01:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183039#M1090</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-22T01:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183040#M1091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca..Thanks a lot for your great input. Appreciated. I will go over the links you provided. OLS stands for Ordinary least Squared, it is a linear regression model used to choose the best model fit the regression line .  I'm planning to use field calculator not scripting because I'm not  good at it. I don't if field calculator would be helpful for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 01:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183040#M1091</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T01:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183041#M1092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Sorry I forgot to mention I wanted create new fields with the new values&amp;nbsp;&lt;SPAN&gt;representing the various values in the field currently I have&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 01:57:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183041#M1092</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T01:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183042#M1093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered breaking down the process into different fields, even manually with queries and using the field calculator to provide the reclassed values for the various components?&amp;nbsp; Once you have your base fields created you could concatenate them into a final classification.&amp;nbsp; This would avoid scripts altogether and unless you plan to do this numerous times, the manual process of reclassification and concatenation would ultimately be faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183042#M1093</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-22T02:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183043#M1094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan. Thanks a lot for your input. In the link you provided they didn't talk about create new variables , they just talk about OLS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:02:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183043#M1094</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T02:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183044#M1095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would you please give more explanation. I never used concatenation in GIS, I used  it in excel though&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183044#M1095</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T02:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183045#M1096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca.. Not quite sure but It looks like subtypes may&amp;nbsp;work. I will give a try. My concern is that it might not work with OLS&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-statistics-toolbox/ordinary-least-squares.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-statistics-toolbox/ordinary-least-squares.htm"&gt;Ordinary Least Squares (OLS)—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183045#M1096</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T02:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183046#M1097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a new text field of appropriate width... lets assume that you have 3 fields (aka, variables), initially 2 string and 1 number&lt;/P&gt;&lt;P&gt;'Age' , 'Locale' , 'Education'&amp;nbsp; assume 30, New York and College as the answers&lt;/P&gt;&lt;P&gt;To produce new values for your new field you would simply open the field calculator, select python parser and set the 'type' to string/text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"{0} {1} {2}".format(!Locale!, !Age!, !Education!)&amp;nbsp;&amp;nbsp; # note there is a space between the sets of curly braces.&lt;/P&gt;&lt;P&gt;This is equivalent to&lt;/P&gt;&lt;P&gt;!Locale! + " " + !Age! + " " + !Education!&amp;nbsp;&amp;nbsp; # where you have to concatenate the spaces directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the first format you can swap out the sequentials numbers to suite your sequence preference ie&lt;/P&gt;&lt;P&gt;"{2} {0} {1}".format( etcetera...&amp;nbsp; would put Education, then&amp;nbsp;locale then age...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you cate the drift.&amp;nbsp; I have a number of blog posts on the newer style python formatting options.&amp;nbsp; These are largely based on python versions from 3.3- 3.5, Python 3.6 is introducing a somewhat simpler form, but it is a year or so away from becoming a fixture in Arc*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing you have to remember is to set your parser to python, and field names are enclosed in exclamation marks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS&lt;/P&gt;&lt;P&gt;I might add you can play around with the base format&lt;/P&gt;&lt;P&gt;"{0}, {1}, {2}".format(!Locale!, !Age!, !Education!)&amp;nbsp;&amp;nbsp; # is now comma-separated&lt;/P&gt;&lt;P&gt;"{0} - {1} -&amp;nbsp;{2}".format(!Locale!, !Age!, !Education!)&amp;nbsp;&amp;nbsp; # or a dash or two&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183046#M1097</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-22T02:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183047#M1098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds great, very straightforward. I'm going to give it a try for sure. My question is can I use the same code for other variables too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:58:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183047#M1098</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T02:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183048#M1099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;I have one numerical variable which is population size and I wanted to categorize it into &amp;nbsp;e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;!- less than 500,000&lt;/P&gt;&lt;P&gt;2- 500000-1000000&lt;/P&gt;&lt;P&gt;3- 1 million to 2 million&amp;nbsp;&lt;/P&gt;&lt;P&gt;4- etc .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can I use the same exact code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 03:07:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183048#M1099</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T03:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183049#M1100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reclassification can be done one at a time by querying for a condition, then using the field calculator on a new field and providing a value... ie, query for values &amp;lt; 500000 in one field, then in your new field you can use the field calculator to assign a value of ... say... 1 to that class.&amp;nbsp; Repeat for subquent classes.&amp;nbsp; In short, when records are selected in a table, and a field calculation is then performed, only the selected records for the appropriate field are calculated.&amp;nbsp; Repeating your condition 3 or 4 times is probably the quickest since I suspect that your comfort level with scripts isn't quite what you want it to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if you want to read up on field calculator expressions using python code blocks, when you have some leisure time, then this might work. The whole thing gets copied into the code block and the last line (without the # comment, eg. np_reclass(!fieldname!) ) gets copied in the expression box.&amp;nbsp; Obviously !fieldname! is the field name containing the old data and line 3 represents the new 'breaks'/'bins' to reclassify your data into..&amp;nbsp;&amp;nbsp; BUT like I said, do it manually in your case, but keep this in mind should you have to do sequential numerical reclassifications in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; numpy &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; np
&lt;SPAN class="comment token"&gt;# ----&amp;nbsp; change the values below in sequential order ----&lt;/SPAN&gt;
bins &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;500000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2000000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5000000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; 
&lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;np_reclass&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;val&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; bins&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inc_by&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"""useage: np_reclass(!fieldname!)"""&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cls &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;digitize&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; val&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; bins&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; right&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; inc_by
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; cls
&lt;SPAN class="comment token"&gt;# ---- useage ---- copy this whole thing to the code block&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# np_reclass(!fieldname!)&amp;nbsp; # this goes in the expression box&lt;/SPAN&gt;&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;/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 09:19:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183049#M1100</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T09:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183050#M1101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, that is great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 03:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183050#M1101</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2017-03-22T03:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new variable in GIS</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183051#M1102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha....boy I've been out of school too long....I knew that at one time. &amp;nbsp;Ugh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 04:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-new-variable-in-gis/m-p/183051#M1102</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-03-22T04:10:08Z</dc:date>
    </item>
  </channel>
</rss>

