I'm trying to create a model that uses values from a single table, in order to perform a different calculation for each raster in a file.
Each raster is represented in the table by a row that contains the raster unique name (string), and 2 other fields with the numeric values for the calculation (slope & intercept).
I use "Iterate rasters" to go through the files, and "Table Select" where I select the relevant row for the parameters, by using %Name% (from the iterator) = name (the raster name in the table).
Doesn't work... the model gets stuck in the "Table Select" stage.
Does anyone have any idea why?
I attached python code and image of the model.
Solved! Go to Solution.
Is your table that you are selecting from in a local geodatabase or file system?
Have you tried putting single quotes around the %Name% in the selection expression?