I have 2 datasets of raster footprints (Luc_1, Luc_2, Luc_3……. L_250) and (Dir_1, Dir_2, Dir_3 …. Dir_250). I need to combine Luc_1 with Dir_1, Luc_2 with Dir_2, Luc_3 with Dir_3, and so on. I have created a Model (using the Iterate Raster function) combining Luc_1 with all Dir rasters, Luc_2 with all Dir rasters, Luc_3 with all Dir rasters. It's a bit more time-consuming and in the end I have to delete the 249 rasters not needed. Is there any way I can specifically pair only the rasters I am after?
To Iterate over paired rasters with simple names such as LUC_1 and DIR_1 and times them together the model need only be this:
- For is from 1 to 3 in steps of 1.
- The MODEL ONLY calculate Value tool is simply building the full file path based upon the output of the iterator. Note the inline substitution %ID% and that output is a Raster Dataset type. This allows them to feed into the Times tool.
- Times tool is outputting a file using the ID.