1

I have a complex model (with many tools/steps chained - named from "a" to "p") and I need iterate two input rasters (p1.img and p2.img), so that all the model outputs returned for the two input files. As there are many chained steps on the model, I applied the Parse Path output as a in-line variable substituition. My attempts and the problem were:

  1. Multivalue iterator: return the outputs correctly but just in relation the file p1.img, doesn't run for the file p2.img. (image below)
  2. Raster iterator: generate a kind of loop, running repeatedly and cumulatively outputs in relation of the file p1.img. (image below)
  3. Turn the raster iterator and parse path tools as a submodel and add it into a main model that contain the steps: return the outputs correctly but just in relation the file p1.img, doesn't run for the file p2.img. (image below)

How can I run all the model steps for both input files p1 and p2?

I suspect that the problem is the Parse Path tool, that in some way limit the model to run upon the first file (p1) only.

enter image description here

enter image description here

closed as off-topic by PolyGeo Dec 18 '17 at 22:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • To progress this question I think we need to investigate using test models that only include the minimum number of tools to reproduce your problem, rather than using your actual models. – PolyGeo Dec 18 '17 at 22:29