<?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 assign weights as user-defined variables in model builder for the Weighted Overlay tool in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/how-to-assign-weights-as-user-defined-variables-in/m-p/1044202#M2309</link>
    <description>&lt;P&gt;I am trying to create a model in ArcMap 10.7.1 that will create a weighted overlay of a population density raster, a land cover raster, and a traffic volume raster. The goal is for the user to choose which weight to give each raster. I have been trying to use the Calculate Value (model builder only) tool to create a weighted overlay table that will allow the user to enter the weights. The model will be published as a geoprocessing service and used within a web mapping application.&lt;/P&gt;&lt;P&gt;This is my model, followed by a screenshot of the code used in the calculate value tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_0-1617725085247.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10179i0C0682750BFF148E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_0-1617725085247.png" alt="BenMaxson_0-1617725085247.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_2-1617725370534.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10181i42CDC718ACF239E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_2-1617725370534.png" alt="BenMaxson_2-1617725370534.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I created a variable for the expression for the calculate value tool, which uses inline variable substitution to allow the user to enter the weights as model parameters. Here is the expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_3-1617725400507.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10182iCA265AC170CC448A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_3-1617725400507.png" alt="BenMaxson_3-1617725400507.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This calculate value tool works for me, and if I run it, and then add the weighted overlay tool to the model, I can run the weighted overlay. However, when I try to run the model as whole, the weighted overlay tool becomes white, meaning that it is not ready to&amp;nbsp; be run. When using the GUI for the model, I receive an error saying that the weighted overlay table does not exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the table that appears to be used by the weighted overlay tool when I run each tool individually in model builder:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_4-1617725524802.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10183iDC554B2ECB0C903D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_4-1617725524802.png" alt="BenMaxson_4-1617725524802.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The weighted overlay runs successfully doing each tool individually, as shown in the screenshot below, but when run as a whole, the weighted overlay tool becomes white, like in my first image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_5-1617725762342.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10185iBD28C61062907A0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_5-1617725762342.png" alt="BenMaxson_5-1617725762342.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, here is the GUI along with the error message that I receive:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_6-1617725804707.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10186iBFB12013681C06D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_6-1617725804707.png" alt="BenMaxson_6-1617725804707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any ideas on why my weighted overlay table is not being read as the correct type, or notices any other issue that may be causing this result, I would greatly appreciate it!&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 16:18:16 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-04-06T16:18:16Z</dc:date>
    <item>
      <title>How to assign weights as user-defined variables in model builder for the Weighted Overlay tool</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-assign-weights-as-user-defined-variables-in/m-p/1044202#M2309</link>
      <description>&lt;P&gt;I am trying to create a model in ArcMap 10.7.1 that will create a weighted overlay of a population density raster, a land cover raster, and a traffic volume raster. The goal is for the user to choose which weight to give each raster. I have been trying to use the Calculate Value (model builder only) tool to create a weighted overlay table that will allow the user to enter the weights. The model will be published as a geoprocessing service and used within a web mapping application.&lt;/P&gt;&lt;P&gt;This is my model, followed by a screenshot of the code used in the calculate value tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_0-1617725085247.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10179i0C0682750BFF148E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_0-1617725085247.png" alt="BenMaxson_0-1617725085247.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_2-1617725370534.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10181i42CDC718ACF239E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_2-1617725370534.png" alt="BenMaxson_2-1617725370534.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I created a variable for the expression for the calculate value tool, which uses inline variable substitution to allow the user to enter the weights as model parameters. Here is the expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_3-1617725400507.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10182iCA265AC170CC448A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_3-1617725400507.png" alt="BenMaxson_3-1617725400507.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This calculate value tool works for me, and if I run it, and then add the weighted overlay tool to the model, I can run the weighted overlay. However, when I try to run the model as whole, the weighted overlay tool becomes white, meaning that it is not ready to&amp;nbsp; be run. When using the GUI for the model, I receive an error saying that the weighted overlay table does not exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the table that appears to be used by the weighted overlay tool when I run each tool individually in model builder:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_4-1617725524802.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10183iDC554B2ECB0C903D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_4-1617725524802.png" alt="BenMaxson_4-1617725524802.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The weighted overlay runs successfully doing each tool individually, as shown in the screenshot below, but when run as a whole, the weighted overlay tool becomes white, like in my first image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_5-1617725762342.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10185iBD28C61062907A0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_5-1617725762342.png" alt="BenMaxson_5-1617725762342.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, here is the GUI along with the error message that I receive:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenMaxson_6-1617725804707.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10186iBFB12013681C06D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenMaxson_6-1617725804707.png" alt="BenMaxson_6-1617725804707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any ideas on why my weighted overlay table is not being read as the correct type, or notices any other issue that may be causing this result, I would greatly appreciate it!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 16:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-assign-weights-as-user-defined-variables-in/m-p/1044202#M2309</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-04-06T16:18:16Z</dc:date>
    </item>
  </channel>
</rss>

