Friday, November 13, 2015

Network Analysis

Python Script

The objective of this exercise is to write a python script that will select specific mines that will eventually be used for analysis. The final analysis that will be performed after the script is complete is the total impact trucking sands from mines to rail stations have on local roads. The python script includes multiple queries and select by location to find the appropriate mines that meet the following criteria. The criteria that needs to be meet is that the mines must be active, must be a non rail loading station, and eliminate any mines that are within a 1.5 km distance of the rail station. The final script is presented below (Figure 1.)
Figure 1

Once establishing the appropriate features the next goal of the exercise is to perform a network analysis. The network analysis entails an examination on the transportation of frac sand from the mines to the rail terminals to ultimately determine a trucks overall weight impact on local roads.

To begin the exercise a street network dataset is first brought into the map document. Along with the streets, features created from the PyScript are also displayed, mines and rail terminals. A query takes place inside the rail terminal feature class to eliminate terminals that are not rails, for example ship or air. This is done because the sand leaving Wisconsin is done primarily through rail terminals. After adding the new selection to the map we can now determine a trucks fastest route to a rail station. In order to accomplish this task the closest facility tool is used. Within the tool you now need to determine which feature will be the facility or incident; In this case the rail terminal feature is assigned to facilities and mines to incidents. This is an important step because when a route is created, which is the next step, the incident will find the quickest route to the facility. Now that the route for each mine has been determined, calculating the county's road maintenance cost due to trucks transportation of sand is next. However, before I did any calculations I made sure I projected each feature class into an appropriate projection that would help accurately display my final results. The projection I used was NAD 1983 HARN Wisconsin TM. To calculate the total road damage we were given hypothetical numbers. The cost per mile for road damage was 22 cents and each mine had a total of 50 trips to each rail terminal a year. To begin this step I created a new field that calculated the total miles of each route by county, then I created a field that showed the total cost per route by county. To find the cost I used the field calculator tool and multiplied the number of trips, 50 by 2 because the truck needs to go back and forth on the road to deliver the sand, then I multiplied that number by the total miles and cost per mile damage, .022. Next, I found the total cost per county, so I created a excel table that calculated the total sum of each route in each county and converted the table to ArcMap where I then joined the table to the Wisconsin county feature, which would ultimately project the final results as shown below. Barron, Chippewa, and Eau Claire county suffer the most road damage. The steps I took in order to find the final results can be seen on the model builder snap shot.
Final Map Results
Sand Mine Model Builder


Sources:
Hart M., Adams T., & Schwartz A. (2013). Transportation Impacts of Frac Sand Mining in the MAFC Region: Chippewa County Case Study. Retrieved from http://midamericafreight.org/wp-content/uploads/FracSandWhitePaperDRAFT.pdf


Monday, November 9, 2015

Geocoding



The goal of this assignment was to geocode the addresses of the sand mines located in central and western Wisconsin. The objectives within the assignment include table normalization, locating addresses using PLSS layers, geocode, and compare with class results.

The data was collected from the Wisconsin DNR and my first objective was to normalize each individual sand mine assigned to my name. To achieve table normalization I created individual fields that separated counties, cities, address numbers, address, zip code, PLSS, and mine unique ID (Figure 1.). Some of the addresses of the mines were put into PLSS, so in order to find there location I used the Wisconsin's DNR PLSS section and township layer in ArcMap. Once I established a normalized table I could then convert the excel file into ArcMap and use the geocode tool. Before running the geocode tool I matched my address field with address and my city field with city. By doing this the tool can now find the correct location. I recieved a 100% match, which is excellent because you ideally want to be above 85%. I reviewed my locations on ESRI's imagery basemap to confirm I indeed have a 100% match, and I did (Figure 2). Lastly I shared my information with the class by exporting my document into a shapefile. The final geocoding results can be observed in the map below (Figure 3.)

Source:
PLSSFinder | PLSSFinder. (n.d.). Retrieved November 7, 2015, from http://www.sco.wisc.edu/plssfinder/plssfinder.html

Figure 1
Figure 2
Figure 3