[GIS] Converting multiple rasters to new raster (mosaic) in ModelBuilder

arcgis-10.1arcgis-desktopmodelbuildermosaicraster

I want to use Mosaic To New Raster in ModelBuilder.

I want it to give me multiple outputs because I have multiple folders with a different number of images in each.

Below is the model that I have already tried.

enter image description here

Best Answer

You need two models, a main model and a sub model. The main model iterates through your folders, calls the sub model - which collects all the rasters within the current folder and passes the results back to the main model and into the mosaic to new raster tool.

  • Main Model - selects a folder and passes it to the sub model. Mosaics rasters from sub model.

enter image description here

  • Sub Model - collects rasters within folder and pass them back up. enter image description here
Related Question