Difference between revisions of "Change Detection using Whitebox"

From CUOSGwiki
Jump to navigationJump to search
Line 139: Line 139:
   
 
=== Setting Area of Interest ===
 
=== Setting Area of Interest ===
  +
  +
Whitebox currently has no way of modifying the vertices of a polygon shapefile. As a result, the area of interest will be manually selected using the available methods.
  +
  +
*Click on the layers tab above the table of content on the left
  +
  +
  +
*Right click on one of the transformed bands and select zoom to layer
  +
  +
  +
*Click the zoom in button in the toolbar at the top
  +
  +
  +
*With the zoom in button selected, click and drag on the image, creating a square around a portion of the GTA
  +
  +
  +
*Right click on 2004-Band1-Transformed layer found in the layers tab
  +
  +
  +
*Click Clip layer to current extent
  +
  +
  +
*A popup window will appear, giving you the option to name the new layer. Call the new layer '''2004-Band1-Transformed-Clipped''' making sure to use the same naming format for the 2011 Landsat Band
  +
  +
*This process is repeated for band one of the 2011 Landsat image.
   
 
=== Adding Created Data ===
 
=== Adding Created Data ===

Revision as of 15:00, 21 December 2014

Disclaimer

Please note that this Wiki has been created for GEOM 4008 Advanced Topics in Geographic Information Systems at Carleton University in order to demonstrate a method of change detection analysis using Free and Open-Source Software (FOSS). It is highly recommended that these steps are followed in the order that they appear to avoid confusion. The tutorial is set up to be performed on a Windows operating system.

Purpose

The purpose of the project was to develop a method to detect change in an environment using FOSS. This tutorial has been created to allow individuals who are not familiar with GIS to successfully complete this analysis using Whitebox (3.2.1). This tutorial will be carried out by analyzing the temporal changes that occur in a subsection of the Greater Toronto Area (GTA). The end result of this Wiki will be the creation of a change detection map using the write function memory insertion method. This will provide qualitative insight into the temporal change of land cover in a subsection of the GTA.

Data

In order to perform a change detection analysis, satellite imagery is required. For this tutorial, Landsat imagery of the GTA will be used and can be found by in the United States Geological Survey (USGS) Landsat image database using the search tool Earth Explorer.

Datatable.jpg

Note: A free account with the USGS is required to download the required Level 1 satellite data and to also have the option for batch downloads.

Whitebox Installation

Whitebox can be downloaded from the following link, and the zip file can be extracted to a user defined location. Whitebox unlike other programs does not require the software to be installed onto a computer. Instead, Whitebox runs as an executable jar file which uses Java to operate, meaning that Java must be installed on the computer to operate.

Note: While running Whitebox, an out of memory error window can occur. To fix this issue a 64-bit version of java is required. The following link, gives a detailed explanation as to why the error occurs along with the steps necessary to fix the error.

Methodology

Starting Whitebox

  • Locate and open the extracted Whitebox 3.2.1 folder FolderPic.jpg
  • Click on WhiteboxGIS file

Adding Landsat Data

The type of change detection analysis being performed requires two different Landsat Bands. The first Landsat band is band one from the 2004 Landsat image and band one from the 2011 Landsat image.

  • Click on the Tools tab above the table of contents on the left
    Importing GeoTIFF


  • Click Data Import/Export from the available tools


  • Click Import GeoTIFF (.tif)


  • The Import GeoTIFF window will appear


  • The Import GeoTIFF window will appear
    GeoTIFF Import Window


  • Click on the open folder icon


  • Browse to the location where the Landsat images were extracted too


  • Select Band one from the 2004 Landsat image


  • Click open
    Importing Band 1 2004 Landsat


  • Band one for the 2004 Landsat should now appear within the dialog box of the Import GeoTIFF window


  • Click run to add band one to Whitebox


  • This process is repeated for band 1 for the 2011 Landsat image

Changing Projection

Each band will be transformed into WGS 84 UTM Zone 18N.

  • Click on the Tools tab above the table of content on the left


  • Click Conversion Tools from the available tools


  • Click on Coordinate System Transformation


  • The Coordinate System Transformation window will appear


  • Click on the open folder relating to the input file


  • Browse the location of band one for the 2004 Landsat image


  • Select the band one file with the .dep extension


  • Click Open


  • Click on the open folder relating to Output File


  • Save the file in the same folder as the non-transformed band with the following format (Year-Band#-Transformed)


  • Click save


  • Select UTM to Geographic (Lat/Long)


  • Select WGS 84 for the ellipsoid


  • Select Zone 17 and North


  • Select Nearest Neighbour for Interpolation Method


  • Click Okay to perform the transformation


  • This process is repeated for band one of the 2011 Landsat image.

Adding Transformed Data

  • Click the add layer button located along the top toolbar


  • Browse to where the transformed band is located


  • Select the transformed band


  • Click Open


  • This process is repeated for band one of the 2011 Landsat image.

Setting Area of Interest

Whitebox currently has no way of modifying the vertices of a polygon shapefile. As a result, the area of interest will be manually selected using the available methods.

  • Click on the layers tab above the table of content on the left


  • Right click on one of the transformed bands and select zoom to layer


  • Click the zoom in button in the toolbar at the top


  • With the zoom in button selected, click and drag on the image, creating a square around a portion of the GTA


  • Right click on 2004-Band1-Transformed layer found in the layers tab


  • Click Clip layer to current extent


  • A popup window will appear, giving you the option to name the new layer. Call the new layer 2004-Band1-Transformed-Clipped making sure to use the same naming format for the 2011 Landsat Band
  • This process is repeated for band one of the 2011 Landsat image.

Adding Created Data

Band Normalization

Write Function Mempry Insertion

Conclusion