Tuesday, June 14, 2016

Programming: Module 5

This weeks lab focused on creating a model and exporting it into a script.  The model was created in ArcMap using shapefiles and geoprocessing tools.

When models are exported into a script, not all of the data sources are populated.  It is important to adjust the parameters  and it is important to connect the data to the correct folders.  To create the model used in the script, I added a new model to the toolbox.  From there, I was able to drag the soil and basin shapefiles into the model.  I wanted to clip the soil layer with the basin later and dragged the clip tool into the model.  To erase soils that aren't ideal for farming, I added the select tool to the model.  Once the area was selected, I was able to added the erase tool.

During the whole model creating process, I had to make sure that all the parameters were set.  Another key piece to creating the model was enabling outputs to be overwritten.  The model is exported as a script.  Scripts can also be added to the toolbox to be ran in ArcMap.
Shapefile Output of Ideal Soils

Below is a flowchart that represents the process of the script that was created to clip and erase certain soils from the basin layer.



No comments:

Post a Comment