Iteration with raster files using in-line variable substitution in model builder

Discussion created by marc.girona.mata on May 8, 2014

I am trying to use Model Builder to run a model over a set of raster images iterating them. For each different raster, there is another model input which changes. I am trying to use in-line variable substitution, but the problem I have is that the input variable has to contain the entire name of the Raster in its name.

The Raster images I am using have this name: v401jan2014p141r40d20120209_landcover_crop

Note that characters in bold are referred to the date (YYYYMMDD)

On the other hand I have the other parameter with name: 201301020000_GICS

In this case, there is also a date on it. I just need that month and day (MMDD) correspond to the raster image.

Can I use somehow in-line variable substitution to iterate the raster images with the corresponding file of the other parameter?

Or is there any other way to do it?