Tuesday, March 15, 2016

Python Scripts

Introduction:


Python is a computer programming program that is very user friendly is and is incredibly easy to pick up with a small amount of help along the way.  I found it easy to understand, and easy to find help using ESRI's online help function to guide myself through the process.

Script 1:


In Lab 5 I was able to create a script which allowed me to project, clip, and load rasters into a geodatabase, which used a loop code to go through the rasters and determine its datum.  The code will then decide if it needs to be changed and will apply the proper projection.

Script 2:

In lab 7 we had to select mines from the all_mines feature class that was given to us in the ex7.gdb.  These mines contained mines that are in Wisconsin that we also already worked on for geocoding. We had to select mines that are active and farther away than 1.5km from a rail road system.  Using this code allows us to find the mines that have a high impact on the road systems from trucks transporting their sand.

Script 3:

In lab 8 we utilized this script above to create a weighted model.  I decided to put weight onto the Schools because I feel they are a very important factor in deciding where to place a mine.  The point of this script is to show the difference of putting on different weights on the different variables that we used.  I noticed when I ran this one it really did put a larger impact on the schools area making it seem more important than the rest of the variables.  

No comments:

Post a Comment