<?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 How to calculate a value and use the result as a variable and perform an equation... in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-a-value-and-use-the-result-as-a/m-p/78023#M2737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;on multiple inputs and rasters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to build a model and I have two problems. 1- I need to have to user input variables calculated and the result used as a variable in a simple multiply tool. Currently the only way I can get it to work is manually do the addition and put the number in the input raster or constant value1 field of the tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2- I need to have a user input 8 different values and use them in an equation that multiplies them by different rasters. Also they if possible should have a default value in the variable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The equation goes something like this ((UserVar1 + UserVar2) * Raster1) + ((UserVar3 + UserVar4) * Raster2)..........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The UserVar 1 - User Var 8 are different types of numbers for example userVar1s default = -4.874733 and UserVar4s default = 6.069E-07&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions? I am fairly new to the model building and have little to no scripting knowledge at this point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 May 2010 19:16:36 GMT</pubDate>
    <dc:creator>scottstreisel</dc:creator>
    <dc:date>2010-05-12T19:16:36Z</dc:date>
    <item>
      <title>How to calculate a value and use the result as a variable and perform an equation...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-a-value-and-use-the-result-as-a/m-p/78023#M2737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;on multiple inputs and rasters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to build a model and I have two problems. 1- I need to have to user input variables calculated and the result used as a variable in a simple multiply tool. Currently the only way I can get it to work is manually do the addition and put the number in the input raster or constant value1 field of the tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2- I need to have a user input 8 different values and use them in an equation that multiplies them by different rasters. Also they if possible should have a default value in the variable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The equation goes something like this ((UserVar1 + UserVar2) * Raster1) + ((UserVar3 + UserVar4) * Raster2)..........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The UserVar 1 - User Var 8 are different types of numbers for example userVar1s default = -4.874733 and UserVar4s default = 6.069E-07&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions? I am fairly new to the model building and have little to no scripting knowledge at this point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 19:16:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-a-value-and-use-the-result-as-a/m-p/78023#M2737</guid>
      <dc:creator>scottstreisel</dc:creator>
      <dc:date>2010-05-12T19:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a value and use the result as a variable and perform an equation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-a-value-and-use-the-result-as-a/m-p/78024#M2738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are new to ModelBuilder I would strongly suggest reading the online help for it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you are using 9.3 or 9.3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Creating_a_simple_model"&gt;http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Creating_a_simple_model&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using 10 prerelease&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_is_ModelBuilder/002w00000001000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_is_ModelBuilder/002w00000001000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need two things:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Model Parameter which lets the user input values from model tool dialog. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To create a model parameter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In MB create variables (8 if you want &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; and select them, right click and check Make Model Parameter. A letter P appears besides the variable indicating that it is now a model parameter. Now when you double click a model from Catalog window the model will open with a dialog and you will see the variables as input parameters, in the order you made them model parameters. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will have to read a bit to understand more about changing model parameter order and data types of the variable in the model. I suggest you read the help from this link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_stand_alone_variables/002w0000003v000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_stand_alone_variables/002w0000003v000000/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_model_parameters/002w0000003z000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_model_parameters/002w0000003z000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Next to use the variables/ user input model parameter values you can use the variable in the model as in-line variable substitution. You might have to read some help for the first time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_inline_model_variable_substitution/002w0000005w000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_inline_model_variable_substitution/002w0000005w000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the attached image&amp;nbsp; to understand a small example of how to use in-line variable substitution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 21:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-a-value-and-use-the-result-as-a/m-p/78024#M2738</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2010-05-12T21:03:33Z</dc:date>
    </item>
  </channel>
</rss>

