<?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: Iterate tool with multiple input variables in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111810#M3820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If RasterA and RasterB are in the same folder, you will need to somehow distinguish the 2 in your code logic so that they can be passed as A and B parameters respectively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise whats is variable A for one loop might be variable B for another loop. Hope this makes sense?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2012 23:56:45 GMT</pubDate>
    <dc:creator>SolomonPulapkura</dc:creator>
    <dc:date>2012-07-12T23:56:45Z</dc:date>
    <item>
      <title>Iterate tool with multiple input variables</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111809#M3819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey forum,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a raster calculator model that includes two input variables and produces a single output raster. Now i want to quickly do that calculation over all 90 variable pairs times 8 folders. Model builder only lets me have one iterator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For simplicity sake:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let say the calculation is: RasterA + RasterB = RasterC;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now I want to do that calculation for 90 paired (RasterA and RasterB) variables within a folder. I am unfamiliar with python, but I have the time and resources to learn it. Any ideas??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 21:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111809#M3819</guid>
      <dc:creator>JasonAdelaars</dc:creator>
      <dc:date>2012-07-12T21:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate tool with multiple input variables</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111810#M3820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If RasterA and RasterB are in the same folder, you will need to somehow distinguish the 2 in your code logic so that they can be passed as A and B parameters respectively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise whats is variable A for one loop might be variable B for another loop. Hope this makes sense?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 23:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111810#M3820</guid>
      <dc:creator>SolomonPulapkura</dc:creator>
      <dc:date>2012-07-12T23:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate tool with multiple input variables</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111811#M3821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;They are distinguishable. Each pair needs to be input into the model for each iteration. To my understanding right now the iterator does not allow multiple inputs into a model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 14:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111811#M3821</guid>
      <dc:creator>JasonAdelaars</dc:creator>
      <dc:date>2012-07-16T14:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate tool with multiple input variables</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111812#M3822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create two separate iterators that exist in their own models.&amp;nbsp; Then, add both models to a "final" model, and set preconditions so the iterators need to run to collect the values of the iterators before the final processes run in your full model.&amp;nbsp; Take a look at this resource &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;here&lt;/A&gt;&lt;SPAN&gt; for guidance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 16:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111812#M3822</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2012-07-16T16:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate tool with multiple input variables</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111813#M3823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jonathan, i think this is on the right track. But the iterator models pass over all the files in the folder and only runs the last two rasters through the final model. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need it to take a pair of rasters, run them through the model, and produce an output. Then take the next pair of rasters, run through model, produce output...etc. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 17:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-tool-with-multiple-input-variables/m-p/111813#M3823</guid>
      <dc:creator>JasonAdelaars</dc:creator>
      <dc:date>2012-07-16T17:40:26Z</dc:date>
    </item>
  </channel>
</rss>

