I am trying to build a model that clips a bunch of my rasters to a specific polygon shape, and I need all my files to be labelled in a specific way. In order to label them, I am trying to use the create a variable tool to splice out the parts of the files paths I need and then use them to label the file.
It works fine without the spliced variables, for example when the Extract by Mask output is: %Name%_clipped, it is totally fine.
But when I try and add the Calculated Values as parameters to the name of the Extract by mask the model just iterates through the one variable set, rewriting over the file every time. It no longer iterates through the files in the geodatabase.
The Calculated Values are strings and the inputs look like: "%Name%"[0:5]
Any suggestions to get it to iterate though all the rasters in my geodatabase and name the files based on the input rasters?