<?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 multiply two layers base on particular fields? in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62940#M890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Thanks Nawajish.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;It appears that using the “raster calculator” tool is much efficient in this case&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Lookup("%P_Rank%","P_Rank") * Lookup("%I_map%", "I_Factor")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/487560_Clip_315.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2020 06:44:51 GMT</pubDate>
    <dc:creator>JamalNUMAN</dc:creator>
    <dc:date>2020-04-06T06:44:51Z</dc:date>
    <item>
      <title>How to multiply two layers based on particular fields?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62935#M885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;How to multiply two layers based on particular fields?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the screenshot below, I wanted the first raster based on the field named ???I_factor??? with the second raster based on the field named ???value??? but couldn???t know the correct syntax to perform this process!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What might be the correct syntax?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14673[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2012 18:56:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62935#M885</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2012-05-26T18:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply two layers base on particular fields?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62936#M886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be able to do this with the Lookup function similar to one of your other forum posts:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/57903-What-is-wrong-with-this-syntax-when-using-the-%E2%80%9Craster-calculator%E2%80%9D" rel="nofollow" target="_blank"&gt;What is wrong with this syntax when using the ???raster calculator????&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"P_rec" * Lookup("I_rec","I_factor")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 19:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62936#M886</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2012-05-29T19:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply two layers base on particular fields?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62937#M887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You should be able to do this with the Lookup function similar to one of your other forum posts:&lt;A href="http://forums.arcgis.com/threads/57903-What-is-wrong-with-this-syntax-when-using-the-%E2%80%9Craster-calculator%E2%80%9D"&gt;What is wrong with this syntax when using the �??raster calculator�?�?&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;"P_rec" * Lookup("I_rec","I_factor")&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for the help Timothy. The syntax you have provided solved my issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14850[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 07:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62937#M887</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2012-06-01T07:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply two layers base on particular fields?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62938#M888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Is there a way to use the “times” tool in order to multiply two rasters based on particular fields?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/487532_Clip_308.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2020 08:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62938#M888</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2020-04-05T08:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply two layers base on particular fields?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62939#M889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamal,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the &lt;STRONG&gt;Lookup&lt;/STRONG&gt; tool to&amp;nbsp;create a new raster by looking up values found in another field in the table of the input raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a model or you can write a map algebra expression as follows to solve your problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/487543_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This map algebra expression does 3 things in one&amp;nbsp;shot&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. It creates a raster using the value from &lt;EM&gt;P_Value&lt;/EM&gt; field from &lt;EM&gt;P_map&lt;/EM&gt; raster - let's call it &lt;EM&gt;P_Value_Raster&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;2. It creates a raster using the value from &lt;EM&gt;I_Facto&lt;/EM&gt;r field from &lt;EM&gt;I_map&lt;/EM&gt; raster - let's call it &lt;EM&gt;I_Factor_Raster&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;3. Finally it multiplies &lt;EM&gt;P_Value_Raster&lt;/EM&gt; with &lt;EM&gt;I_Factor_Raster&lt;/EM&gt; to create the final output &lt;EM&gt;times_ P_I&lt;/EM&gt; raster object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the expression is executed in one shot, you don't see the outputs from step 1 and 2. You get the final output&amp;nbsp;&lt;EM&gt;times_ P_I&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;the output from a map algebra expression is temporary, so, don't forget to save your output by calling the Save method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Noman&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2020 17:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62939#M889</guid>
      <dc:creator>NawajishNoman</dc:creator>
      <dc:date>2020-04-05T17:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply two layers base on particular fields?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62940#M890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Thanks Nawajish.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;It appears that using the “raster calculator” tool is much efficient in this case&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Lookup("%P_Rank%","P_Rank") * Lookup("%I_map%", "I_Factor")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/487560_Clip_315.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2020 06:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62940#M890</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2020-04-06T06:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply two layers base on particular fields?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62941#M891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad that you find &lt;STRONG&gt;Raster Calculator&lt;/STRONG&gt; more efficient for your workflow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Raster Calculator&lt;/STRONG&gt; tool is designed to&amp;nbsp;execute a &lt;EM&gt;map algebra&lt;/EM&gt; expression in a model. It executes the same expression as you would do in Python Window or in a standalone Python script. However, it creates a persisted output&amp;nbsp;like any other Geoprocessing tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From analytical and execution point of view, it works the same way&amp;nbsp;like any map algebra expression, just a different user experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please free free to use whatever suits your workflow. Please let me know if you see any real performance different between executing it from a &lt;STRONG&gt;Raster Calculator&lt;/STRONG&gt; and from Python Window or in a standalone Python script.&lt;/P&gt;&lt;P&gt;I hope, you are enjoying the &lt;STRONG&gt;Lookup&lt;/STRONG&gt; functionality which has been improved recently to make it efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Noman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2020 22:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-to-multiply-two-layers-based-on-particular/m-p/62941#M891</guid>
      <dc:creator>NawajishNoman</dc:creator>
      <dc:date>2020-04-06T22:19:46Z</dc:date>
    </item>
  </channel>
</rss>

