Skip to main content

GIS Programming Module 1

 

Above are the results of the code created in module. The assignment was a combination of writing new script and repairing pre-existing scrip. The first step was to create a list from name and print my last name only using its index number. Following last name you will see a series with the following pattern "X roles a # out of #, X wins" This was the pre-existing code that needed repairs. Once fixed it generates a random number between 0 and a number equal to double the number of characters in each persons name. If they role higher than the length of their name it tells you they won, otherwise it tells you they lose. Next, a list with 20 random numbers is created. Then a number of our choosing, I chose seven, is declared the unlucky number. If that number does not occur in the list it the script tells you so, if the number does occur in the list then all instances of the unlucky number are removed and the program tells you how many were removed. The final step is to print out the list of numbers after the unlucky number has been removed.

Comments

Popular posts from this blog

GIS 6005 - Module 1

  General: General features were given large black font with a small white halo to increase legibility and visual contrast. The font size is the largest of any font on the relevant feature. The text was placed in a central location without overlapping other labeled features or important data. Water Features: Water features were given dark blue italic serif font. The color chosen was dark enough to allow legibility and contrast with the light blue water background.   For the Golden Gate and San Francisco Bay labels they are placed in a central location within the water feature at a level angle with the page. The Lake Merced label was angled to line up and be contained within the lake. Park Names: Park labels were given a dark green color with a thin white halo to allow visibility and contrast while still keeping the labels intuitive. Font size was chosen to keep the labels within the boundaries of the park. However, due to the shape of Lincoln Park the label overhangs how...

GIS Programming Module 4

  The below images are the output of the script for module 4 followed by the flowchart for the script. This module covered manipulating and editing data in feature class attribute tables. What you see below is the result of creating a new geodatabase, copying all shapefiles saved to the module 4 data folder to the new geodatabase, a search cursor identify the name, feature, and population of all New Mexico county seat cities populations. Finally it prints out a dictionary that has been populated with the county seat names and populations. Output: Flowchart:

Module 1 Lab: Visual Interpretations

  The focus of this lab was to identify features in aerial images using various techniques. The top map used shows features that were identified using one of four methods, pattern, shape and size, association, and shadows. The bottom identified areas using texture and tone from fine to course and light to dark.