Hi,
I am starting to use model builder and I face some trouble when using “iterate rasters” and “collect values”. I have 50 rasters (GRID format) in a folder and I want to make simple calculation on each of this raster (using tool “Minus”). Well, this is where I ended up following various conversations on various forums to try to solve my problem.
Now, when I select my folder containing my 50 rasters (called “output” since it contains the output of previous calculations) in the iterate raster’s interface, it returns only the first raster (called “maat_e1000”) as output raster (see below), but I also have “maat_e2000”, “maat_e3000”…
So I imagine that then if I run the model it will only perform calculation on this single raster. Then I thought about using “collect values” prior to us ethe “Minus” tool, but I think I should first fix this problem.
If anyone knows why “Iterate Rasters” generate only 1 output raster and could help me with that I will be very grateful!
Many thanks in advance
You should use Inline Variable Substitution.
Also read A quick tour of using inline variable substitution—Help | ArcGIS Desktop
Examples of using iterators in ModelBuilder—Iterate Rasters
Hi,
thank you very much for proposing these solutions.
However, I am not entirely sure that I'll manage to cope with that (I possibly misunderstand the use of inline variables).
My worries are the following:
In my case, I select my input raster folder called "ouput" and the only output raster I have is "maat_e1000", which is the first in my list of rasters.
Well, I hope this clarifies a little bit my problem and will help to solve it, or at least I hope this would reveal where I am wrong!
Thanks!