<?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: Iterators in model builder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117114#M428</link>
    <description>&lt;P&gt;Thank you!but I am not sure how to implement it. Could you provide me with some visual example? How can I put the name as variable and after use to generate the path for the second folder?&lt;/P&gt;&lt;P&gt;I have attached an image about how looks the first iteration, and what I can see in the raster calculator&lt;/P&gt;&lt;P&gt;Could you give some advice in how to do it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27485i0CE5655BF5B3CFBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture3.PNG" alt="Picture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 04:46:12 GMT</pubDate>
    <dc:creator>SAV</dc:creator>
    <dc:date>2021-11-16T04:46:12Z</dc:date>
    <item>
      <title>Iterators in model builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117101#M426</link>
      <description>&lt;P&gt;Hello, my question is about &lt;STRONG&gt;iterators&lt;/STRONG&gt; and &lt;STRONG&gt;model builder.&amp;nbsp;&lt;/STRONG&gt;I believe that does not fit in this group, but I am not able to post under the ModelBuilder group.&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;I need to make a division between two rasters (raster1/raster2). Raster1 and Raster2 have the same name but are located in two different folders.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Folder1:&amp;nbsp; users/folder1/Raster1&lt;/P&gt;&lt;P&gt;Folder2: users/folder2/Raster2&lt;/P&gt;&lt;P&gt;I want to do these operations over multiple files, then I need to iterate over two folders and make the division of the rasters with the same name. The output is a raster with the result of that division.&lt;/P&gt;&lt;P&gt;I have tried following this idea: idea:&amp;nbsp;&lt;A href="https://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Integrating_a_model_within_a_model/002w0000007p000000/" target="_blank" rel="noopener"&gt;https://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Integrating_a_model_within_a_model/002w0000007p000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the result of the image below. I cannot connect the output of the submodel to the raster calculator of the main model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea in how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27481iC48A82298D1E86F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 02:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117101#M426</guid>
      <dc:creator>SAV</dc:creator>
      <dc:date>2021-11-16T02:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Iterators in model builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117107#M427</link>
      <description>&lt;P&gt;It sounds like you don't need nested models. Iterate over the first folder, this will yield the path to the first raster as users\folder1\raster1.tif for example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then then use the Name variable (which on that iteration will contain the text string "raster1.tif") to generate the path for the second by specifying it as users\folder2\%Name%.&lt;/P&gt;&lt;P&gt;Hope that helps you out!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 04:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117107#M427</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-11-16T04:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Iterators in model builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117114#M428</link>
      <description>&lt;P&gt;Thank you!but I am not sure how to implement it. Could you provide me with some visual example? How can I put the name as variable and after use to generate the path for the second folder?&lt;/P&gt;&lt;P&gt;I have attached an image about how looks the first iteration, and what I can see in the raster calculator&lt;/P&gt;&lt;P&gt;Could you give some advice in how to do it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27485i0CE5655BF5B3CFBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture3.PNG" alt="Picture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 04:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117114#M428</guid>
      <dc:creator>SAV</dc:creator>
      <dc:date>2021-11-16T04:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Iterators in model builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117117#M429</link>
      <description>&lt;P&gt;Maybe this will help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27486iD2432E83AAF056FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.JPG" alt="example.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 04:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117117#M429</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-11-16T04:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Iterators in model builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117119#M430</link>
      <description>&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;I could do it!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 05:11:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterators-in-model-builder/m-p/1117119#M430</guid>
      <dc:creator>SAV</dc:creator>
      <dc:date>2021-11-16T05:11:18Z</dc:date>
    </item>
  </channel>
</rss>

