Making as a dedicated thread originated in comments here with @Duncan Hornby and @Curtis Price.
Need:
I have many sites each composed of one to over twenty rasters. They are sorted into folders by site (Atch: "Folder Structure"). I want to iterate through these sites as workspaces in order to mosaic rasters in each site. Output will be in a different folder titled as such: "mosaic_siteX" or "siteX_mosaic".
Model Attempts:
I first tried a 3 part model; one to iterate workspaces, one to iterate rasters in those workspaces, and one to perform the mosaic (Atch: "TestModel_1"). I ran the iterate workspaces feeding the folder containing the sites with "recursive" checked. This, in a way, was the most successful attempt, though it didn't work. It would iterate through all the workspaces and only mosaic the last one, but it mosaic'ed this last correctly.
Changing the above per suggestions in thread linked at top I moved the nest to be m2 inside of m1 (instead of vice versa) and sent that output to a third for mosaicing (Atch: "TestModel_2"). This output iterated through workspaces but only sent the last tile of each site workspace to the Collect Values tool and mosaic'ed the last tile of each site together rather than all tiles from one site together.
I tried a third edit, running the mosaic inside m1 after the collect values, but this had similar results to directly above. It would iterate through and make a mosaic each iteration, each time adding the last tile of the next site added. I.e. first iteration last tile of site 2; second iteration last tile of site 2 and 5 mosaic together; third iteration last tile of site 2, 5, 6 mosaic together.
I need to blend the mistakes, as it were. The iterate rasters to collect values and mosaic results need to be that of the first attempt, but the site folders and workspace iteration needs to do that mosaic to all folders, not just the last one. I want to try and finish this in model builder, as that is where I have had the most successful experimenting thus far. If it comes down to it I may try to use arcpy, but my exposure is limited for the moment; I will be taking a class on it starting next week.
Apologies for the delay in getting this post up. I've had power and internet issues following a local incident in town the other day.
Cheers,
Nate