2

Is it possible to break Iterate Raster after certain set of processes ?

I have a list of Image files which I am processing using Iterate Rasters and performing aggregate and Extract Values to Points and then writing the output to a textfile.

I have three processes:

  1. Aggregate
  2. Extract Values to Points
  3. Writing to textfile

I want to execute process 1 and 2 in Iterate, but 3 Process I don't want to perform in the Iteration. Instead, I want to perform process 3 after all the Iteration got completed for the 1 and 2 process in the same Model.

Anybody has any idea how can I achieve this in the same model?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 25, 2013 at 18:41
0

2 Answers 2

5

One solution is to use the iterations portion as a completed model, then use that model inside of another that performs the remaining operations on the output of the iteration model. This is called a nested model. Also, consider looking into Python scripting, the options for dropping into and out of iterations are much more flexible.

answered Mar 25, 2013 at 19:25
1
  • @ Jay Guarneri : Thank you the way you have suggested is worked for me. Commented Mar 25, 2013 at 20:48
0

Here are two links which are related to @Jay's post:

Example of using an iterator in a model

Integrating a model within a model

Aaron
52k30 gold badges161 silver badges327 bronze badges
answered Mar 26, 2013 at 14:18
2
  • -1 I was unable to find any information about how to exclude processes from iteration within this link. Could you please expand on your comment to address the original question? Commented Mar 26, 2013 at 17:36
  • @Aaron - I agree with you but I believe this is the relevant content: "If an iterator is added to a model, all tools in the model iterate for each value in the iterator. If you do not want to run each tool in the model for each iterated value, create a submodel/model within a model/nested model that contains only the iterator and add it as a model tool into the main model" Commented Mar 26, 2013 at 18:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.