Sunday, May 17, 2015

Module 1 - Introducing Python

This blog submission marks the start of a new semester and a new class within the UWF GIS Certificate program! For the first module in GIS Programming we ran a Python script.

The purpose of the script was to set up all our folders and sub-folders for the semester, which it did in the blink of an eye. I had double-clicked on the script which ran it immediately - that was something of a mistake on my part, as I had meant to only open the file for viewing/editing. Oops. The script results are shown below.

What scripting can do for you - above is the Module 1 script results.
Once I opened the script I observed some variables I was able to understand right away (like "import os" or "course folder = [location for folders]"). Others, like "def createPath (path):" I'm not so sure on... but I can hazard a guess as to what that's getting at (and that probably is a definition of some kind). The formatting of the script is also a bit more complex than the pseudocode examples we had played around with in the lecture part of the class.

Overall this looks to be an interesting course - I've already picked up little knowledge nuggets, and I'm pleasantly surprised at how seemingly easy scripting can be.

No comments:

Post a Comment