Showing posts with label GIS Programming. Show all posts
Showing posts with label GIS Programming. Show all posts

Monday, August 5, 2013

Module 11 Assignment: Sharing Tools

For our final module, we were tasked with updating a script to include parameters that used the sys.argv[] instead of what was originally in the script. We also had to embed the script, add a password, and share the tool. The end result can be found below.  This course was tough and sometimes overwhelming. I'm glad I made it through the semester unscathed. 






Monday, July 29, 2013

Module 10 Assignment: Creating Custom Tools

For module 10 we were tasked with creating a custom toolbox with 1 script tool. Everything ran properly but I had to change the file path. We started with creating the toolbox and then set the parameters.

Thursday, July 25, 2013

Module 9 – Debugging and Error Handling

Module 9 consisted of finding errors and fixing them. Part one had 4 errors and part 2 have 5 errors. Many of them were simple misspelled words, forward slashes, etc.  However there were a couple that I had to get some direction with via an elluminate session with our teacher.  Only a few more weeks to go. 



Thursday, July 18, 2013

Module 7 Assignment: Geometry and Rasters Parts 1 & 2

Module 7 was particularly hard to get through.  Part 1 of the assignment consisted creating a .txt file and writing it to coordinates and object id's for vertices in a shape file. Then created a raster output that identifies areas with a particular set of parameters. 
Part 2 involved working with rasters. I had a lot of trouble with this part. The end result is a single raster with highlights of certain areas. 


Wednesday, July 3, 2013

Module 6 Exploring/Manipulating Spatial Data


In Module 6 we learned how to explore and manipulate spatial data in Python.  We started out by setting the environments to allow overwrites, created a .gdb that copied all items from our data folder into the .gdb, created a search cursor that displayed name and population, and had to make sure that each task printed results.  This assignment was yet again tricky for me, mostly due to me not having a background in Python. With the guidance of a fellow student and our teacher, I was finally able to get the script to produce the required results.

Sunday, June 9, 2013

Module 4 – Python Fundamentals ll


This week we were tasked to edit a script that contained a dice rolling game.  There were a total of 8 errors found in the loop. Additionally,  we had to create a loop that counted from 0-5 printing each number. This module was arduous for me, since I've never touched scripting in my life. Thank goodness for great classmates, or I would have ended this week with bald patches. It takes a good eye to catch the simplest of errors.  On to next week.....

Sunday, June 2, 2013

Module 3 – Python Fundamentals I


In Module 3 we were tasked with an assignment that would require to use methods and functions in Python to manipulate strings and lists and perform basic math within the program.  The above screen shot shows the final results of the assignment. The end result required us to print our last name and a number equal three times the number of characters in our last name.

This assignment was frustrating and took a lot of finagling, but when I finally has success I got the biggest sense of relief.

A couple of things I learned to look out for was making sure to delete any symbols and excess failed scripts. (<<<, ..., and the heading in python). I got stuck at this point for a fair amount of time, but managed to figure things out with the help of some discussion postings from fellow classmates.




Friday, May 24, 2013

Module 2: Geoprocessing in ArcGIS

This week we learned how to create models and script tools in Arcmap. We also used batch processing and used Pyhton to run a geoprocessing script. Once the objectives were finished, we were tasked with exporting the model as a script. This weeks work was pretty tough to navigate as the review was 30 pages of instructions. However, those instructions were instrumental with completing the assignment. The end result is shapefile of the basin with all of the "Not prime farmland" soils removed from the basin.





Wednesday, May 15, 2013

Module 1 GIS Programming- Getting our Feet Wet

The summer semester is here after a short two week break and we are jumping in feet first to Python Scripting for AcrGIS.  This weeks module consisted of learning how to access Python via the program list and ArcMap. We also were tasked to run a file called CreateModuleFolders.py created each modules folder for this semester and several folders within each module including Scripts, Results, and Data.  This was done by double clicking the folder. Attached is a print shot of the end result after running the folder.