Menu

Saturday, November 1, 2014

Remote Sensing Using Multispectral Analysis

I was pretty stoked to be able to learn how to use remote sensing tools in GIS. To determine the growth in urban land cover, I used multispectral imaging and analysis to compare two images of Mombasa, Kenya from 1992 and 2014.

GIS software can identify urban and non-urban land cover, and combine the two images and measure the growth in urban land cover. Over 12 years the city grew by 86% in land over. According to the Kenya census, the population also doubled from about 460,000 people to a million during that same period.

How does Remote Sensing and Multispectral Mapping actually work? Below is a 3 min video from a guy in a turtleneck explaining it:

  


GIS software has the ability to identify different patterns of images on maps, and pick our urban land, vegetation, water and other uses. The tools in Arcmap can conduct both supervised and unsupervised classifications.  When unsupervised, the tool will basically go through and classify all of the various patterns it finds on its own.  Since computers aren't as smart as people on their own as picking out patterns, this can lead to a lot of patterns output and the results might not be very enlightening.

However under a supervised classification you can train GIS by selecting samples of an area that represent the pattern for each type of land cover.  So you can select urban and vegetation, water, or desert for example. Now when you run the tool the software will try to match each area to the closest example that you used to train the model  (In my example below this is what I did.)  The power of this tool is pretty extraordinary if you combine it with machine learning, or other data such as the specific light frequencies available from USGS Landsat data.

USGS satellites  have the ability to separate images into various light bands. This is an incredibly useful tool for making patterns of certain features much more pronounced and easy to train a model to identify. Using both visible light, as well as infrared and heat imagery, you can combine different combinations to more clearly identify differentiate objects. Combining two different bands can filter out the shaded side of a hill, and leave a unique signature of the rocks and plants in the area. A false color image can create stark a contrast that delineates urban and non-urban areas.  It should be noted that using light frequencies allow for you to filter out shadows and other features and define features clearly.

Each pixel has a value and when you assign a false color (Red, Green, or Blue), that value is represented as a shade of that color.  However those number values are real frequencies in the light spectrum across the band selected.  If you knew the exact frequency of light reflected from a particular plant, you could use this process to highlight those specifically from everything else including other types of plants in the image.


Below are several false color images of a few combinations that can be created using different bands. Notice how in the first, urban land is green and different geological features are shades of red.  The image in the bottom left of the graphic shows different ocean depths and the reef clearly.  Each combination of light bands highlights different types of features.




The next images shown are the analysis for the two different time periods. The small images show the satellite image of the bands used (5,4,3) and the large images show the classification of land cover that was completed using image analysis tools in GIS. The area identified in red for 2014 denotes the new urban land cover that grew over that period while the pink areas illustrate the original urban area. 

Each pixel represents a square area 30m by 30m.  The total growth in area therefore can be computed by simply counting the total red (New Urban Growth) and pink (Original Urban Cover) pixels.


Here is a list of all the different band combinations and uses for each.

Wednesday, August 13, 2014

Cartodb Test

The image above was a test to try out CartoDB within Blogger.  Blogger is pretty restrictive with the active content and compatible plugins.  I found that other free javascript plugins like leaflet will not function in Blogger but CartoDB is an option that will work.

The map shown is simply an export of the Democratic Ward Committee Elections data from the previous post.  CartoDB offers some simply map options with its free membership.

Hopefully I'll have some time to play around with this tool later and see if there is any additional functionality that can be added.

Wednesday, July 9, 2014

Taking a Look at Philadelphia's Wards

Philadelphia's Wards:

Philadelphia's smallest level of elected offices are its ward leaders.  Wards play a principle role during elections as its leaders receive and distribute street money from each party's campaign funds.  Ward leaders also perform other roles behind the scenes that allow them to serve vital functions within the political system.

Within each ward are further subdivisions called Ward Divisions.  Why is this important?  During each primary voters choose who their candidates will be for various offices.  However voters also choose their representatives, committee persons, within each ward division.  The ward division committees get together before the general election and choose by vote who the leader for that ward will be.  Each ward has two ward leaders, one for each party. So if you are a Republican or Democrat, you will elect your own committee person for your party.  In 2014 the ward committees were elected in the May primaries and they subsequently elected their leaders for each ward in June of 2014. 

How easy is it to get elected as a ward division leader?  Sometimes it can be incredibly easy.  In the 2014 primary a number of divisions elected a committee person through just 1 vote, that contained a write-in candidate.  That's it.  One person walked into the polls, wrote their name on a piece of paper and got elected to something.

The second map below tracks those who were elected via write-in.   These candidates either wrote themselves in themselves and were elected or had a few others write their names in as well to win.

Below is a map of all the districts and highlighted in red are the ward divisions that elected their leader by just 25 votes or less.  If you could grab 25 friends or supporters and walk into a poll on primary day, you'd have a shot at being elected to participate in Philadelphia's political process.

58th ward (in the far northeastern corner of the city boundary) was the leading division that had the most write-ins and 18 out of its 34 divisions elected committee persons with 25 votes or less.

If you wanted to get started with being involved behind the scenes of the Philadelphia political process, grab some friends during the primary and write-yourself in.




Wednesday, June 25, 2014

Infrastructure Development Volunteer Project for GVI Shimoni, Kenya




I volunteered for 4 weeks during May/June of 2014 with a UK based NGO called GVI building latrines nearby Shimoni, a small village on the southern coast of Kenya.  Four latrines total were built, one in each corner of the neighboring village to aid with hygiene and sanitation initiatives since the village currently had no latrines nearby.  In addition to construction, GVI also has volunteers who work on health initiatives and community development with the community (as well as forest and marine wildlife conservation projects.)

The village partnered with GVI by first digging the holes of each latrine to a depth of about 20 feet, much of which was dug through the solid coral rag rock characteristic of the area.  Construction for the entire project was completed over the course of about 5 weeks, usually with 3 volunteers and a local “fundi” – the Swahili term for someone who is an expert in their trade.  

 
Hamisi (our fundi) squaring off the foundation.



A foundation was laid around each hole using pieces of coral rag and cement, followed by the floor which was a mix of coral gravel (hand-cut) and cement to create the concrete.  With the base in place the walls were laid using coral bricks and cement.  (Often the coral bricks were irregularly shaped and could be trimmed into blocks using a dull machete.)  The roof and doors were constructed using several wood beams and tin sheets.

The materials and methods used for construction of the latrine were typical for almost any structure in Kenya.  Many of the homes built with low cost materials would consist of a wood grid frame and mud bricks, sometimes using pieces of rock and a thatch roof.  However more permanent and higher quality structures in various villages and the major cities are built using concrete and coral bricks.  The bricks were sourced from one of several quarries along the coast, and the concrete also quarried in these areas and manufactured at one of the several major cement plants in Mombasa.

Here is a short time-lapse video of the process of constructing one of these units:




 
For more information about GVI, visit:  http://www.gviusa.com/