raster iteration - output file naming

2419
1
Jump to solution
05-03-2013 07:29 AM
toddsams
New Contributor III
I have set up a simple model in model builder (graphic attached) and I would like to have the final "Output Raster" named based on name of the raster that is currently being processed. For example, I would like the output raster named as "soil_clay1". The next raster in the workspace is named "soil_ph" and I would like this raster to be named "soil_ph1", and so on.

My only option in "Mosaic to New Raster" is to provide a static output name. This name is then be used to create the output for each raster in the workspace and is overwritten on each iteration.

How can I dynamically name the output raster based on the input raster file name?
1 Solution

Accepted Solutions
toddsams
New Contributor III
0 Kudos
1 Reply
toddsams
New Contributor III
Got it.

%Name%1
0 Kudos