Difference between revisions of "Talk:Raster Analysis with GRASS tools in QGIS"
Nahomseyoum (talk | contribs) m |
Nahomseyoum (talk | contribs) |
||
Line 15: | Line 15: | ||
4.2 Opening QGIS |
4.2 Opening QGIS |
||
• Once you completed the installation and found all the data you want to use, create a folder in your computer and place the data in this folder. |
• Once you completed the installation and found all the data you want to use, create a folder in your computer and place the data in this folder. |
||
− | • Click the QGIS icon to open the program. |
+ | • Click the QGIS icon to open the program. |
+ | This will open the QGIS window. After the QGIS opened up add the Raster data to QGIS space |
||
4.3 Adding Raster Layers to QGIS |
4.3 Adding Raster Layers to QGIS |
||
− | • Click |
+ | • Click Add Raster layer to add the raster data. |
• After the data added, |
• After the data added, |
||
• Then right click on the data properties to project to right coordinate |
• Then right click on the data properties to project to right coordinate |
||
Line 30: | Line 31: | ||
• Go to General, search or select the right coordinate system from coordinate reference system. |
• Go to General, search or select the right coordinate system from coordinate reference system. |
||
− | + | ||
Line 40: | Line 41: | ||
• To add GRASS pluggin , Manage and Intall Plugins.. |
• To add GRASS pluggin , Manage and Intall Plugins.. |
||
− | + | ||
Line 47: | Line 48: | ||
• Enter GRASS in the search menu to install or if the plug is already installed, it will be in the Installed selection to double click it. |
• Enter GRASS in the search menu to install or if the plug is already installed, it will be in the Installed selection to double click it. |
||
− | + | ||
Line 60: | Line 61: | ||
4.5 Creating GRASS Database |
4.5 Creating GRASS Database |
||
• To create GRASS database, click on the New Map Set |
• To create GRASS database, click on the New Map Set |
||
− | + | ||
Line 67: | Line 68: | ||
• In the new map set Browse to your existing directory or create a new one and then click next. |
• In the new map set Browse to your existing directory or create a new one and then click next. |
||
− | + | ||
+ | |||
− | [[File:Example.jpg]] |
||
Line 81: | Line 82: | ||
• To create GRASS location, click on create new location and name it and the click next. |
• To create GRASS location, click on create new location and name it and the click next. |
||
− | + | ||
− | |||
⚫ | |||
Line 94: | Line 93: | ||
• Setting up the projection. To this search or select the coordinate reference system using filter tool or by selection from the exiting. |
• Setting up the projection. To this search or select the coordinate reference system using filter tool or by selection from the exiting. |
||
− | + | ||
Line 105: | Line 104: | ||
• Set up the extent or the GRASS default region by clicking on: set current QGIS extent. |
• Set up the extent or the GRASS default region by clicking on: set current QGIS extent. |
||
• Also the default GRASS region N, W, E and E can be entered. |
• Also the default GRASS region N, W, E and E can be entered. |
||
− | + | ||
Line 118: | Line 117: | ||
• Finally create the GRASS new mapset by giving it appropriate name. |
• Finally create the GRASS new mapset by giving it appropriate name. |
||
+ | |||
− | [[File:Example.jpg]] |
||
Line 128: | Line 127: | ||
'''5 Data Processing''' |
'''5 Data Processing''' |
||
− | 5.1 Editing the Current GRASS Region |
+ | 5.1 Editing the Current GRASS Region |
• To speed up processing times a processing extent must be created to tell GRASS what region is being worked with, to do that, click on edit current GRASS region |
• To speed up processing times a processing extent must be created to tell GRASS what region is being worked with, to do that, click on edit current GRASS region |
||
− | + | ||
• Then, when region setting pops up, select the extent by dragging on canvas or change the coordinate value and click OK. |
• Then, when region setting pops up, select the extent by dragging on canvas or change the coordinate value and click OK. |
||
− | + | ||
Line 149: | Line 148: | ||
5.2 Importing Raters to GRASS Format |
5.2 Importing Raters to GRASS Format |
||
• To do that, click on the Open GRASS Tools |
• To do that, click on the Open GRASS Tools |
||
⚫ | |||
− | [[File:Example.jpg]] |
||
+ | |||
⚫ | |||
− | [[File:Example.jpg]] |
||
Line 164: | Line 162: | ||
• To load the raster, clicking on r.in.gdal.qgis-Import loaded raster. |
• To load the raster, clicking on r.in.gdal.qgis-Import loaded raster. |
||
− | + | ||
Line 175: | Line 173: | ||
• Then select layer from loaded layer > give output name > Run. |
• Then select layer from loaded layer > give output name > Run. |
||
− | + | ||
Line 192: | Line 190: | ||
• GRASS Modules > Raster > Spatial Analysis > Terrain analysis. There are a lot of Terrain analysis tools available to various operations. |
• GRASS Modules > Raster > Spatial Analysis > Terrain analysis. There are a lot of Terrain analysis tools available to various operations. |
||
⚫ | |||
− | [[File:Example.jpg]] |
||
Line 199: | Line 197: | ||
5.3.2 Creating slope raster from DEM |
5.3.2 Creating slope raster from DEM |
||
• Select r. slope - create slope raster from DEM from Terrain analysis tool box. |
• Select r. slope - create slope raster from DEM from Terrain analysis tool box. |
||
− | + | ||
Line 205: | Line 203: | ||
• After the tool selected, select the DEM data from elevation raster map > name the output slope raster map > click Run. |
• After the tool selected, select the DEM data from elevation raster map > name the output slope raster map > click Run. |
||
• To view the map click on view output. |
• To view the map click on view output. |
||
− | + | ||
− | |||
Line 221: | Line 218: | ||
• To view the new create slope layer map. |
• To view the new create slope layer map. |
||
− | + | ||
Line 234: | Line 231: | ||
5.3.3 Creating Aspect Raster from DEM. |
5.3.3 Creating Aspect Raster from DEM. |
||
• Select r.aspect - create aspect raster from DEM from Terrain analysis tool box. |
• Select r.aspect - create aspect raster from DEM from Terrain analysis tool box. |
||
− | + | ||
• After the tool selected, select the DEM data from elevation raster map > name the output slope raster map > click Run. As it shown on the previous steps. |
• After the tool selected, select the DEM data from elevation raster map > name the output slope raster map > click Run. As it shown on the previous steps. |
||
+ | |||
− | [[File:Example.jpg]] |
||
Revision as of 17:29, 22 December 2015
1 Introduction
This Wiki page has been created for Advanced Topics in Geographic Information Systems (GEOM4008) student at Carleton University. The main purpose of this tutorial is to introduce and familiarize future users to understand the Raster Terrain analysis with Geographic Analysis Support Analysis Support System (GRASS) tools in QGIS. A lot of scientific observations and research produces raster datasets. Raster are essentially grids of pixels that have a specific value assigned to them.
2 Objective
The objective of this tutorial would be to introduce the procedure of plugin functionalities of GRASS tools with in QGIS workspace and give some examples of Terrain Analysis modules on our area of interest (AOI) – Ottawa, Ontario. 3 Data Certain types of raster allow you to gain more insight into the terrain that they represent. Digital Elevation Models (DEMs) are particularly useful in this regard. In this tutorial we will use DEM to find out more about our AOI.
4 Methods and Data Setup
4.1 QGIS Setup Before beginning the tutorial install QGIS version 2.8.2, download QGIS to your computer. Please follow the steps below:
• Click this link to download • Choose which version is compatible with the computer you are working on • Follow the steps in the pop-up downloading window •
4.2 Opening QGIS
• Once you completed the installation and found all the data you want to use, create a folder in your computer and place the data in this folder. • Click the QGIS icon to open the program.
This will open the QGIS window. After the QGIS opened up add the Raster data to QGIS space 4.3 Adding Raster Layers to QGIS
• Click Add Raster layer to add the raster data. • After the data added, • Then right click on the data properties to project to right coordinate • Go to Properties.
• Go to General, search or select the right coordinate system from coordinate reference system.
4.4 Installing and Setting up the GRASS Plugin After the initial QGIS window has been opened and data added, next the GRASS Plugin be installed. The GRASS Plugin allows the tools from GRASS to be used within QGIS.
• To add GRASS pluggin , Manage and Intall Plugins..
• Enter GRASS in the search menu to install or if the plug is already installed, it will be in the Installed selection to double click it.
• After you installed, the GRASS layers will appear on the user interface.
4.5 Creating GRASS Database • To create GRASS database, click on the New Map Set
• In the new map set Browse to your existing directory or create a new one and then click next.
• To create GRASS location, click on create new location and name it and the click next.
• Setting up the projection. To this search or select the coordinate reference system using filter tool or by selection from the exiting.
• Set up the extent or the GRASS default region by clicking on: set current QGIS extent. • Also the default GRASS region N, W, E and E can be entered.
• Finally create the GRASS new mapset by giving it appropriate name.
5 Data Processing
5.1 Editing the Current GRASS Region
• To speed up processing times a processing extent must be created to tell GRASS what region is being worked with, to do that, click on edit current GRASS region
• Then, when region setting pops up, select the extent by dragging on canvas or change the coordinate value and click OK.
5.2 Importing Raters to GRASS Format • To do that, click on the Open GRASS Tools
• When the below pops up, to go File management > Import into GRASS > Import raster into GRASS > Import raster into GRASS from QGIS view.
• To load the raster, clicking on r.in.gdal.qgis-Import loaded raster.
• Then select layer from loaded layer > give output name > Run.
• Now the data that is stored within the GRASS database added and the original files can be removed, by going to the GRASS tool set for vector and raster data.
5.3 Exploring Terrain Analysis Tools in the GRASS Modules
5.3.1 To run these tools.
• GRASS Modules > Raster > Spatial Analysis > Terrain analysis. There are a lot of Terrain analysis tools available to various operations.
5.3.2 Creating slope raster from DEM • Select r. slope - create slope raster from DEM from Terrain analysis tool box.
• After the tool selected, select the DEM data from elevation raster map > name the output slope raster map > click Run.
• To view the map click on view output.
• To view the new create slope layer map.
5.3.3 Creating Aspect Raster from DEM. • Select r.aspect - create aspect raster from DEM from Terrain analysis tool box.
• After the tool selected, select the DEM data from elevation raster map > name the output slope raster map > click Run. As it shown on the previous steps.
6 Conclusion
We have successfully demonstrated how to use various Terrain analysis tools offered in the free and open source software of GRASS with in QGIS using a DEM of the Ottawa region. The Raster Terrain Analysis Plugin can be used to calculate the slope, aspect, hillshade, ruggedness index and relief for digital elevation models (DEM). It is very simple to handle and provides an intuitive graphical user interface for creating new raster layers.
7 Reference
Download QGIS for your platform: http://qgis.org/en/site/forusers/download.html. [Web] accessed: Dec 22, 2015.
GRASS GIS Integration: https://docs.qgis.org/2.8/en/docs/user_manual/grass_integration/grass_integration.html. [Web] accessed: Dec 22, 2015.
QGIS Application : http://hub.qgis.org/projects/quantumgis/wiki/Adding_New_Tools_to_the_GRASS_Toolbox. [Web] accessed: Dec 22, 2015.