I've created a raster calculator model that includes two input variables and produces a single output raster. Now i want to quickly do that calculation over all 90 variable pairs times 8 folders. Model builder only lets me have one iterator.
For simplicity sake:
Let say the calculation is: RasterA + RasterB = RasterC;
now I want to do that calculation for 90 paired (RasterA and RasterB) variables within a folder. I am unfamiliar with python, but I have the time and resources to learn it. Any ideas??
If RasterA and RasterB are in the same folder, you will need to somehow distinguish the 2 in your code logic so that they can be passed as A and B parameters respectively. Otherwise whats is variable A for one loop might be variable B for another loop. Hope this makes sense?
You can create two separate iterators that exist in their own models. Then, add both models to a "final" model, and set preconditions so the iterators need to run to collect the values of the iterators before the final processes run in your full model. Take a look at this resource here for guidance.