Different input values for raster calculator

Discussion created by racheski on Sep 18, 2012
Latest reply on Sep 20, 2012 by racheski
Hello all,

I am building a sub-model that needs to take a raster from a dataset and multiply it by a value that I input into the model as a parameter.  This is easy to do with a single raster, but I want to iterate through multiple rasters in a dataset, and for each individual raster I need to multiply it by a different value, e.g. Raster 1 * 2.5, Raster 2 * 4.7, etc...

The values need to be parameters that I can input each time I run the model.  The only thing I have come up with so far is to make the value a parameter, but the model will use that value for every raster in the dataset (see image).


Can I write a python script that prompts each value before the model runs?  Or is this doable through model builder?