1

I have a question relating to the use of Collect Values in Model Builder.

I've just come across this post (Piping output of Iterate Raster tool into Raster Calculator tool using ModelBuilder?) and it's pretty much the same as what I want to do. I'm also adding in a user defined weighting to the iteration and then attempting to collect the values before running the cell statistics. The problem is that I'm not getting a set of unique outputs at the Output Values stage and it only return results for the last original rasters.

Any idea where I'm going wrong with this?

enter image description here

  • Can you show us whats going on in the Raster Calculator? – Hornbydd Feb 16 '15 at 22:52
  • Thanks for reply. Just to clarify what I'm trying to do....I want to let the user select a number of raster layers to go into a sensitivity analysis (this analysis be run using cell stats at the end of the model - using values stored in output values). Prior to this the user can also add their own weights (1-3) to each selected raster (see Weights1). The raster calc then runs this initial processing and I'm trying to pass the results to Output Values. – Justin Feb 17 '15 at 9:08
  • In addition to this I'm trying to find a way of limiting the number of raster layers that go into the iteration. At the moment everything in the .gdb goes it but ideally a checkbox in the GUI is what I am looking for. Thanks again Hornbydd – Justin Feb 17 '15 at 9:17
  • The way to filter using an Iterator is to use the wildcard parameter, for example "qw*" will only pick up rasters that start with "qw". – Hornbydd Feb 17 '15 at 9:58
  • Just looking at this model as-is, it seems to be OK but we need to see whats going on in the raster calculator as that is white indicating either invalid parameters or an incomplete tool... – Hornbydd Feb 17 '15 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.