I've created a rather large model containing a sub-model that calculates the volume of water basins(playas) in a relatively flat area of Texas. The volume is taken from one foot slices of each each basin up to the point of overflow. I would like to use it to batch-process several sets of the input parameters sequentially.
There are 3 input parameters that are as follows: the map extent(XMin YMin XMax YMax) which the user sets around the basin to be processed; the name of a geodatabase to create(String variable); and the name of the basin itself(String) which is referenced within the geoprocessing tasks from an existing feature class. The model works great but I can only run it once.
I would like to be able to use the input as follows:
Move the map view to the extent for the basin and and fill the grid for extent by using the drop down and selecting the "same as display option".
Enter the new name of the geodatabase to be created.
Enter the name of the Playa(basin).
Repeat for all playas that need to be run(Batch).
The problem I run into is that the model will not run sequentially when using it in the batch window. I'm aware that this is a known limitation of the model builder environment and have had many suggestions that what I'm trying to do is better handled by a Python script. So....
Is it possible to write a script that calls the model in which I could batch process from the script using an iterator or some other method to repeat it? If so, how?
I would be okay with entering my parameters into an Excel sheet that could be read by the script. Is this possible? If so, how? Or, is this even necessary?
Would I need to rewrite my model in script form for this to even be possible?
Me: I have a small knowledge of python scripting, but am well versed in model builder.
I have not done much geoprocessing in python. Mainly small scripts that calculate values and other pretty light tasks.
I've included a picture of the model so you can get an idea of what I'm dealing with. I know that it won't really be readable. I can provide more in depth examples if needed.