I set up a model to iterate rasters and do a spatial analyst math int geoprocess. i did a subset of my entire raster collection just to make sure it would work. I have three rasters in a FGDB. My output only had two rasters? so I reran and had a different output. same results. I renamed the input rasters, same result? Essentially the iterate is grabbing the last raster and naming the output the same as the first rasters output????? Why is this happening? See circled red boxes for exactly what is happening
Darren is correct, you need to use inline variable substitution in the output name of your final raster. The output name of your raster should look like the following:
The %Name% part will use the name of each input raster to your iterator as the output file name.
Hope that make sense.
I don't think file format has anything to do with this here.
I was able to get the model to work correctly. For what its worth, I changed they name of the variable to 'Output_FGDB'...I don't like using things with spaces or special characters (unlikely culprit). I made this a precondition, validated the model, saved, and then ran it through the catalog window. [I wish I used smaller rasters!].
Here is my model:
And here are the results: