This module was my very first exposure to Python scripting. The script layout reminded me of using formulas in Microsoft Excel, in that formatting must be entered correctly for the script to function. Scripting began to make more sense to me once I had the opportunity to practice it for myself in Spyder. The script we used to set up all of the module folders at once was really helpful. It was neat to enter a script to print a dice game and a list of random numbers. It was helpful to be able to examine the existing script and fix problems to make it run correctly. I am learning when to use certain methods, functions, and loops to return the results I need. In Step 3 of this week's module, I learned to watch for strings and integers in the script. In this instance, the word “dice” needed to be scripted as a string, otherwise, the word “dice” was read as an integer in the script and this returned a syntax error.
The attachments above include an image of my Spyder console showing the execution of my script and flowcharts for each script block I entered. The lecture and YouTube videos from the “GIS at UWF” channel were helpful to me this week. I can understand how using the script to find number patterns will be helpful when using ArcGIS. The exercises we practiced in ArcGIS were enlightening, and I am excited to see how Python scripting will help me to become a better GIS analyst.
Comments
Post a Comment