I got it to work now, but I'm not sure why. My iterate workspace model looks just like yours. My iterate rasters sub model is set up like yours, but instead of Building Pyramids and Collect Values I am projecting rasters to a different folder and setting a null value. I had set some parameters using in-line variables (in addition to the initial Workspace or Raster Catalog) and it seems that is where the trouble was. The model would run, but it kept over-writing the first raster. When I unchecked all the parameters it ran correctly. Several questions come to mind: Why was the submodel with parameters checked over-writing the first raster on every iteration? Why did Model Builder change the Parameter names when I connected the Workspace? Why did unchecking the parameters work?
... View more
Hello Forum, I would like to iterate through a folder of input rasters and at the same time iterate through a folder of target rasters to run the Mosaic tool. The folder contents are such that InRas1 should mosaic with TargetRas1 to create Mosaic1, and so on with rasters and targets 2, 3, 4, etc. The thumbnail images show my approach so far. The problem is the model iterates through all of the Input rasters , then all of the Target rasters, and only mosaics the last one from each. I have tried putting in preconditions in various places, but may not be using them correctly, since I don't fully understand them. Thanks fo any help. -Kristine [ATTACH=CONFIG]25849[/ATTACH]
... View more