Module 1 for GIS Programming built upon the principles of Python we were introduced to in our reading and lecture content. This consisted of learning the basics of the Python programming language, learning to write pseudocode, create flowcharts, and learning the basics of how Python editors work. This was all very intimidating considering I have no experience in computer programming languages however after completing this lab the intimidation factor has decreased.
We began the module by running a python the Python script file CreateModFolders.py using the IDLE. Running this script resulted in the creation of the folder directory needed that will be used throughout this course. This saved a great amount of time compared to having to create this directory of folders manually.
The second portion of this module consisted of answering our process summary questions which included creating a flowchart that illustrates converting 3 radians to degrees followed by printing the result. The formula provided for this task was as follows:
degrees = radians*180/pi
I referred to Chapter 3 in Agarwal et al. to complete this task. Following the examples in the text I first created the pseudocode and then created the flowchart using draw.io since we used it in the examples we completed in our lecture. My results can be seen below.
No comments:
Post a Comment