Sunday, October 19, 2014

Exercise 5: Part 1 - Python Script

Introduction

Post 2 will cover the python script created for the 2nd part of the lab.  The first part of the lab will be discussed in post 3.  The objectives of this lap were to write a Python script to project, clip, and load all the data into a geodatabase.  

Python is a open source programming language that uses a scripting language to run functions of programs.  In our case (GIS II) we write python scripts in for ArcGIS especially ArcMap.  Python is a common application used in the work field and will be viable for our future in working and finding a job.  For this assignment the python script will project, clip, and store the rasters that were downloaded, see part 3, into the Trempealeau county database.  We will use these newly projected rasters in futures labs when analyzing sand mining in Trempealeau county.  For more about Python you can click here or here


Python Script


Figure 1: Completed Python Script

Above you can see the completed python script and the results of the new rasters can be seen in part 3 of my blog.  They script took a while to complete and a one error that gave me trouble was I had name my folder raster and the script would not run, giving me errors.  Because there were so many raster words in the script I changed the folder name to part 2 and the script was able to run clean.  As I stated earlier the completed raster's can be seen in part 3 of the lab.

No comments:

Post a Comment