In this weeks assignment, we explored the use of python for geoprocessing. I learned that python can be an invaluable tool for repetitive geoprocesses and complex geoprocesses. ModelBuilder can be used to plan out different processes and string together several tools.Here are some of my experiences from this week's lab.
Model 1: SoilErase
The first part of this week's assignment was my first time using ModelBuilder
in ArcGIS Pro. I now understand the utility of this features. It was very each
to game plan and visualize the steps required to clip, select, and erase the
features to generate the desired final product. My greatest struggle was making
the model as simple as possible. I don’t always think in the most linear path,
but the ModelBuilder helped me identify that I should simplify the model. Other
than that, I was very easily able to create the model and execute it in ArcGIS
Pro to generate the clip soil layer with poor farming areas erased (see images
of the steps and outputs)
Output 1.1:
Output 2: Final Product
The second part of the assignment was a bit more challenging. I used ModelBuilder again to map out my thoughts and layout the tools that would be required. Once everything was laid out, I tested the model and then exported the python script behind the model. Using the exported script, I generated a new script in a Notebook in ArcGIS Pro that could be run as a standalone. To do this, I needed to make sure the file paths were updated. Once everything was update and I had tested each tool in the script, I added print functions to indicate when a tool started and successfully finished. This was accomplished using the GetMessages() function (see the image of the comments for each tool).






No comments:
Post a Comment