Monday, July 18, 2016

Exercise 4: Working with Fields and Selections

Goals: The goal of this exercise was to continue building off of the previous exercises and in this one add a field, calculate a field and apply an SQL statement successfully using Python.


Methods: For this exercise, data from the previous one was used again to achieve further processing of that same data set. With the lines of code below (Figure 1) two fields were added to the attribute tables and the calculate field tool was used on them as well. These two fields add area in km and snow compactness as was done in previous exercises using model builder. After the code was typed out, it was checked for errors and common mistakes such as typos and missed capitalizations and then run, in this case successfully!


Results: The code for this exercise can be found in (Figure 1)




(Figure 1) Code for this Exercise






Hupy, C. (2016, July). Module 2 - Exercise 4. Retrieved July, 2016, from http://www.uwec.edu/Staff/hupycm/  

No comments:

Post a Comment