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:
- Aggregate
- Extract Values to Points
- 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?
2 Answers 2
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.
-
@ Jay Guarneri : Thank you the way you have suggested is worked for me.Dharmesh– Dharmesh2013年03月25日 20:48:55 +00:00Commented Mar 25, 2013 at 20:48
Here are two links which are related to @Jay's post:
-
-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?2013年03月26日 17:36:57 +00:00Commented 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"blah238– blah2382013年03月26日 18:17:27 +00:00Commented Mar 26, 2013 at 18:17
Explore related questions
See similar questions with these tags.