<?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: Two iterators in modelbuilder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474992#M15862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to use preconditions but it doesn't work the way I need it to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heres's my model: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17455[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17456[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have set "152_weight" and "152_weightmask" as preconditions, by right clicking "Zonal Statistics as Table" -&amp;gt; "Properties" and mark them as preconditions. I want to do some statistics on file "152_weight" and "152_weightmask", then 153_weight and 153_weightmask" and so forth. However, the model iterate one step through "Iterate Rasters", then iterates through all the files in "iterate_shapefiles" and then calculates Zonal Statistics that are incorrect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What have I missed? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 11:31:24 GMT</pubDate>
    <dc:creator>AndreasNielsen</dc:creator>
    <dc:date>2012-09-04T11:31:24Z</dc:date>
    <item>
      <title>Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474987#M15857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a project were I need to combine several files. It can be illustrated like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to open File_1 and do a calculation within Mask_A. Then File_2 within Mask_B and so forth. Both the files and masks are stored in separate folders. Is this possible to do in ModelBuilder? I guess I have to use Python, so maybe one of you have an input to that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is easy to do in ModelBuilder if I want to use the same mask for all Files, but not if I want to change mask for each file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 06:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474987#M15857</guid>
      <dc:creator>AndreasNielsen</dc:creator>
      <dc:date>2012-08-16T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474988#M15858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andreas123&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no possibility to use two iterators within one model. But if there is a logic to match the file_name to the mask_name, you can use the model-only tool "Calculate Value" to map the right mask to the current file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jochen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 13:51:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474988#M15858</guid>
      <dc:creator>JochenManegold</dc:creator>
      <dc:date>2012-08-16T13:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474989#M15859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can imbed one model within another, so that you can use more than one iterator.&amp;nbsp; Setting preconditions will make sure that both iterators run before you do any further processing.&amp;nbsp; Here's a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Integrating_a_model_within_a_model/002w0000007p000000/"&gt;resource&lt;/A&gt;&lt;SPAN&gt; that will help get you started.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 14:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474989#M15859</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2012-08-17T14:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474990#M15860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your ideas. I have tried to work with embedded models, but I'm stuck again. This is what my models look like:[ATTACH=CONFIG]17173[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The model to the left is main model, the other is sub. The main model iterates through some raster layers, which the sub model also does. I want to multiply the two series of rasters with each other with raster calculator. I.e. I want to multiply raster "152" from the "Contribution" folder with raster "2010_152" from the "NDGI numerisk" folder. After that, I need to multiply raster "153" with "2010_153" and so forth. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But in the raster calculator, I can not use values from the nested "iterate_masks" model. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas how I can proceed from here? Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 11:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474990#M15860</guid>
      <dc:creator>AndreasNielsen</dc:creator>
      <dc:date>2012-08-23T11:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474991#M15861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You won't want to use the Collect Values tool in your model.&amp;nbsp; The Collect Values tool is if you want to iterate through folders and create a list of feature classes, and then use that list in something like the Merge tool.&amp;nbsp; Instead, just use the output of each iteration as the inputs to the tool.&amp;nbsp; Use Preconditions to make sure that both iterations run before the raster calculation runs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 15:22:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474991#M15861</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2012-08-23T15:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474992#M15862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to use preconditions but it doesn't work the way I need it to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heres's my model: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17455[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17456[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have set "152_weight" and "152_weightmask" as preconditions, by right clicking "Zonal Statistics as Table" -&amp;gt; "Properties" and mark them as preconditions. I want to do some statistics on file "152_weight" and "152_weightmask", then 153_weight and 153_weightmask" and so forth. However, the model iterate one step through "Iterate Rasters", then iterates through all the files in "iterate_shapefiles" and then calculates Zonal Statistics that are incorrect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What have I missed? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 11:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474992#M15862</guid>
      <dc:creator>AndreasNielsen</dc:creator>
      <dc:date>2012-09-04T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474993#M15863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It doesn't seem like you've set the preconditions successfully; dotted lines should appear next to the solid lines that indicate where the preconditions exist:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17463[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you try to use the connector between the two outputs of the iterators and the Zonal Statistics tool and choose precondition and see if that works?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 16:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474993#M15863</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2012-09-04T16:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474994#M15864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think it is a graphic bug, because when I move the tools around a bit in the modelbuilder window, the dotted precondition lines appear? Anyway, I found out how to use preconditions in the right way as has been suggested in this thread, so thanks again for your inputs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 09:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474994#M15864</guid>
      <dc:creator>AndreasNielsen</dc:creator>
      <dc:date>2012-09-14T09:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474995#M15865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again, forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, the model has not been functioning the way I want it to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem is I cant find out how to set the preconditions right. No matter were I put them the sub-model runs all its iterations once, then the main model runs one step, then the sub-model runs all its iterations again and so forth. I have attached one image which I would think was the most logic use of preconditions: when the sub-model has run one step (i.e. its output file changes), tha main model will run one step. However, this is not working as described above. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I make sure that both the sub-model and the main model only run one step each, then does the calculation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19122[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 19:21:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474995#M15865</guid>
      <dc:creator>AndreasNielsen</dc:creator>
      <dc:date>2012-11-07T19:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474996#M15866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andreas123. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the image attached. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try something like that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/Using_Lists/002w0000007n000000/"&gt; Lists&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 15:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474996#M15866</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2012-11-09T15:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474997#M15867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3542"&gt;Jochen Manegold&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate on how you would use the Calculate Value tool to match a file_name to a mask_name? I have raster that are named something like ID_distance and bufffers that are also named ID_distance and I need to run zonal statistics for each raster (about 1300 rasters) in each corresponding buffer. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 12:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474997#M15867</guid>
      <dc:creator>MorganHarris</dc:creator>
      <dc:date>2015-01-27T12:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474998#M15868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I met the same question.Here is my solution:&lt;/P&gt;&lt;P&gt;You could put only one iterate&amp;nbsp;function&amp;nbsp;&amp;nbsp;in Model , but you could get .shp(s) form different folders.&lt;/P&gt;&lt;P&gt;"P"&amp;nbsp; means set the address as a Model Parameter.&lt;/P&gt;&lt;P&gt;In my case :&lt;/P&gt;&lt;P&gt;First, create three&amp;nbsp; parameter as the folder address.&lt;/P&gt;&lt;P&gt;Second, execute the Iterate and functions.&lt;/P&gt;&lt;P&gt;Finally, set the out put folder. e.g. %Output_Folder%\%Name%.shp&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="411300" alt="chose data from different folder" class="image-1 jive-image j-img-original" src="/legacyfs/online/411300_Export Graphic.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="411323" alt="run the Model" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/411323_2018-06-13_17-00-46.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474998#M15868</guid>
      <dc:creator>宇恩楊</dc:creator>
      <dc:date>2018-06-13T09:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474999#M15869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-userid="330428" data-username="unron08301" href="https://community.esri.com/people/unron08301" style="color: #3778c7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;宇恩 楊&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate more about how you managed to use two different folders as an inputs to the model ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 18:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/474999#M15869</guid>
      <dc:creator>AhmedAlshurafa</dc:creator>
      <dc:date>2019-05-13T18:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/475000#M15870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="330428" data-objecttype="3" href="https://community.esri.com/people/unron08301" style="color: #3778c7; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;宇恩 楊&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Can you elaborate more about how you managed to use two different folders as an inputs to the model ?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thank you @&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="330428" data-objecttype="3" href="https://community.esri.com/people/unron08301" style="color: #3778c7; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;宇恩 楊&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 19:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/475000#M15870</guid>
      <dc:creator>AhmedAlshurafa</dc:creator>
      <dc:date>2019-05-13T19:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Two iterators in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/475001#M15871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have this challenge and am really struggling to find a solution. Can you please elaborate on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 03:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/two-iterators-in-modelbuilder/m-p/475001#M15871</guid>
      <dc:creator>AnnaKreij</dc:creator>
      <dc:date>2019-09-13T03:35:17Z</dc:date>
    </item>
  </channel>
</rss>

