<?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 variable in modelbuilder? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/variable-in-modelbuilder/m-p/762954#M24833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a problem in modelbuilder. I need use "select by attribute" function to pick up some values that are less than the mean value. However, I dont know how can I define or input this mean value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be specific, I have a polyline shapfile and with a length field. Then I calculate its mean value (Length field) by right clicking fields - stasticis. here,I got mean value and type it as a input in "select by attribute" function by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Length&amp;lt; mean (for example 1000)&amp;nbsp; Length &amp;lt;1000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, Arcgis can select&amp;nbsp; lengths that are less than mean value (1000). Then I used&amp;nbsp; "Feature to polygon" function to output this features. Please note this is a manual way. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In modelbuilder, I have to drag some functional tools to make this possible. The problem was that the result calculated by "summary stastics" function only output a new table file, and this file was not related with previous work. My question is how ArcGIS can understand if I would like to use mean value (located in new table fild) as a threshold to select the length. In other words, How this mean value can be defined as a variable and identified when working with "Select by attribute" function (actually, there was only one number useful, not the whole table).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My supposed result like this: calculate mean value - select lengths (according to the mean value and less than this value)- feature to polygon as output. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any background in PC language and SQL, but I think it could work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. calculate mean value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Define mean value as a variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Select by attribute : e.g length &amp;lt; mean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think there will be some SQL language or code in play but dont know what exactly I can do for this process. The reason why I would like to make this possible is that I have a big project so that making a fast and complete model for whole project would be very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope if someone can kindly help me or give me some tips. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would be much appreciate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2014 08:22:02 GMT</pubDate>
    <dc:creator>wusirui</dc:creator>
    <dc:date>2014-06-19T08:22:02Z</dc:date>
    <item>
      <title>variable in modelbuilder?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/variable-in-modelbuilder/m-p/762954#M24833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a problem in modelbuilder. I need use "select by attribute" function to pick up some values that are less than the mean value. However, I dont know how can I define or input this mean value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be specific, I have a polyline shapfile and with a length field. Then I calculate its mean value (Length field) by right clicking fields - stasticis. here,I got mean value and type it as a input in "select by attribute" function by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Length&amp;lt; mean (for example 1000)&amp;nbsp; Length &amp;lt;1000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, Arcgis can select&amp;nbsp; lengths that are less than mean value (1000). Then I used&amp;nbsp; "Feature to polygon" function to output this features. Please note this is a manual way. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In modelbuilder, I have to drag some functional tools to make this possible. The problem was that the result calculated by "summary stastics" function only output a new table file, and this file was not related with previous work. My question is how ArcGIS can understand if I would like to use mean value (located in new table fild) as a threshold to select the length. In other words, How this mean value can be defined as a variable and identified when working with "Select by attribute" function (actually, there was only one number useful, not the whole table).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My supposed result like this: calculate mean value - select lengths (according to the mean value and less than this value)- feature to polygon as output. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any background in PC language and SQL, but I think it could work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. calculate mean value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Define mean value as a variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Select by attribute : e.g length &amp;lt; mean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think there will be some SQL language or code in play but dont know what exactly I can do for this process. The reason why I would like to make this possible is that I have a big project so that making a fast and complete model for whole project would be very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope if someone can kindly help me or give me some tips. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would be much appreciate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 08:22:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/variable-in-modelbuilder/m-p/762954#M24833</guid>
      <dc:creator>wusirui</dc:creator>
      <dc:date>2014-06-19T08:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: variable in modelbuilder?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/variable-in-modelbuilder/m-p/762955#M24834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this completely in model builder.&amp;nbsp; To calculate the mean length, use Summary Statistics, as you described above.&amp;nbsp; Do not specify a "case" field.&amp;nbsp; The result of Summary Statistics will be a table containing a single row, with a field named "MEAN_LENGTH" or something similar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a "Get Field Value" tool to the model (it's on the Modelbuilder toolbar, under Insert &amp;gt; Model Only Tools &amp;gt; Get Field Value).&amp;nbsp; Use the summary statistics results table as your input table, and select the MEAN_LENGTH field.&amp;nbsp; The output of this tool will be the value of MEAN_LENGTH, in a variable that you can then use in the rest of your model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 19:54:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/variable-in-modelbuilder/m-p/762955#M24834</guid>
      <dc:creator>EarlSarow</dc:creator>
      <dc:date>2014-09-16T19:54:10Z</dc:date>
    </item>
  </channel>
</rss>

