Skip to content

This repository is a collection of all manuals, scripts, models and data for our group project in the "GIS Analyses with FOSSGIS" seminar 2021/22 at the University of Heidelberg. Enjoy!

Notifications You must be signed in to change notification settings

Milli97/Fossgis22_Plants-vs-CO2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Plants versus CO2

Classification, Calculation and Comparison:
Does the vegetation of a specific region suffice to compensate the CO2 emissions of this exact region?

General information

For a specific point in time we would like to determine the vegetation areas in a region of interest (roi) and compare them with CO2 emission values to find out whether they are sufficient enough to compensate those emissions. The project should serve to correlate CO2 emissions of a roi with its vegetation areas and to be able to make statements about the climate balance. Through automation, different regions should be able to be examined easily. It should be pointed out that all values are estimated and not to be taken as scientifically proven.

Software requirements and Installation

Programs (we used):

  • QGIS Desktop 3.22
  • with the following Plugins:
    • SAGA 7.8.2-14
    • GRASS GIS 7.8.6-7

Those programs and plugins are all are included in the OSGeo4W-Package

  • Microsoft Excel (any Spreadsheet with basic calculation tools will do)

How to install

GIS:

  1. Download the OSGeo4W Installer from here (official link to the current network-installer)
  2. Run the installer
  3. Select Advanced Install, click through the steps and keep the default values
  4. Stop at "Choose packages": select the following packages for installation. Click on "Skip" in the column "New" to select a package for installation. If a package is selected for installation, the version number will be shown in the column "New". You can search for their names in the searchbar.
  5. Under the section "Desktop" choose:
    qgis: QGIS Desktop (3.22)
    saga: SAGA (7.8.2-14)
    grass: GRASS GIS (7.8.6-8)
  1. Under the section "Libs" choose: qgis-grass-plugin: GRASS plugin for QGIS (3.22.3-1)

    Note: Additional packages which are needed to run the ones listed above will be selected automatically. Just keep those as well.

  2. Complete the installation

Spreadsheet:

You should already have a Spreadsheet program installed. If not, feel free to choose any you like and install it accordingly.

Required data

  • Multispectral raster data of Heidelberg: Sentinel 2 data (https://scihub.copernicus.eu/dhus/#/home), it's available free and has a resolution of 10m in the needed bands red and NIR
  • Vector data of Heidelberg: GADM data by country (https://gadm.org/download_country.html), it's available free, is structured in different administrative levels and comes with interesting additional data
  • Emission (CO2) data: OpenGHGMap (https://openghgmap.net/), it's available free, outputs one total emission value per city/region and shows the different sources of emission
  • Sequestration ability of vegetation: values from literature

Aquisition of the required data

First step: download the file project_data.zip and extract the files into a folder (choose a name). This is called the project folder in the following steps. The folder data in it is referred to as ./data.
Take a look at Data structure.png for reference:

Data structure.png
How to aquire vector data
  1. Navigate to GADM data by country, select any country you want and download the Shapefile
  2. When downloaded, unzip the ZIP-file into a folder (e.g. gadm36_DEU for Germany) and move the whole folder to the folder ./data
How to aquire raster (Sentinel 2) data
  1. Navigate to Copernicus Open Access Hub by ESA registration form and set up an account
  2. Log in on Copernicus Open Access Hub. Without logging in you cannot download the required data
  3. Specify the search area in the map with right-click (move map with left-click and zoom in with mouse wheel)
  4. Click on the three stripes left of the search box to open the advanced search (upper left corner of screen)
  5. Select Sentinel 2 and put following statement in the box for the cloud cover: [0 TO 10]
  6. If you want to search for data in a specific time period, put the required dates in "sensing period" (we recommend using the year 2018 because the emission data is from this year only)
  7. Click on the search button (upper right of search box) and wait until the results are displayed
  8. Search for an image with full extent (no black parts) and minimal cloud cover
  9. Hover over the entry and click on the eye icon ("View product details") which appears along with other icons on the lower right side of the entry
  10. Check in the quick look window if the data seems suitable

    If the images you are looking for are offline, take a look at troubleshooting for some help on that problem.

  11. In the Inspector, navigate to GRANULE/*Name of data*/IMG_DATA/R10m/ and download the two files "...B04..." & "...B08..." (both .jp2)
  12. When downloaded, put the two files in the ./data folder
How to aquire emission data
  1. Navigate to OpenGHGmap and wait until the data is loaded (coloring the base map)
  2. Specify the search area by zooming in with the mouse wheel and moving the map with left-click
  3. Hover over the region you want to see data from and you'll get a red value which shows the total CO2 emissions in tonnes for the year 2018
  4. For convenience you can already put the value in the "Excelsheet.xlsx" which can be found inside the project_data.zip in the marked cell beneath "Emission value (t CO2/year)" (blue background). This will be a step at "Part 2: Calculations" (see below) as well

Example data is provided through heiBOX. The emission value for Heidelberg is 472.689 t CO2/year (2018).

How to run

Part 1: QGIS Model
  1. Open QGIS, navigate to the project folder and double-click on the model "QGIS_Model" to run it
  2. Put in all required data:
    • Column name depends on the admin level of your roi. Every country has different admin levels and so you have to specify which column of the according shapefile (gadm) you want to use to search for your roi. For cities in Germany, leave the default setting (more info under troubleshooting)
    • CRS: specify in which ccordinate reference system you want to project your data. For analyses in Germany, leave the default setting
    • The color definition file is "colors.txt" in your ./data folder (more info under specifics - coloring)
    • GADM shapefile is the .shp-file in your gadm folder with the according number as specified under "Column name" (more info under specifics - reigon of interest)
    • Name of your roi is the region you want to analyse. Any name of a city or town should work, as long as you specify the right admin level. It has to be in the extent of the Sentinel 2 raster images!
    • The raster bands are the two from the ./data folder with "B04" and "B08" in their names (the right order is very important!)
    • Reclassification matrix is the table with information on how the tool shall reclassify (more info under specifics - reclassification) - leave the default setting
    • The next two parts are the outputs: it's not important where the output files are exported to, you just should find them easily afterwards (we recommend using the project data folder and naming both output or results)
  3. Uncheck both check boxes
  4. Run the model
  5. It outputs one image and one Excel file at the locations you specified as output folders

    If you need help with running the model, check the files inside the folder Examples, help and additional info

  6. Take a look at the image and compare it to NDVI colored.png - does it makes sense? You should see your roi colored from red to green on a white background
  7. Proceed if it looks fine, repeat the steps if something seems wrong. Remember to check your input values in the model! Additional help can be found under Examples, help and additional info. If you cannot resolve the problem yourself feel free to ask questions in the Discussions section of this repository
Part 2: Calculations in Excel
  1. Open the Excel file you got from the model as output
  2. Copy the values from the third column (no title)
  3. Navigate to the project folder and open "Excelsheet.xls"
  4. Paste the values in the column "HERE (m²)" (blue background)
  5. Now put in the emission value from OpenGHGmap in the marked cell under "Emission value (t CO2/year)" (blue background) if you did not already
  6. All following values including the result should be automatically calculated
  7. The result is displayed through a color in the corresponding cells. It states whether the vegetation suffices to compensate the CO2 emissions of your roi or not

Congratulations, you completed this analysis!

Footnote:

For further information on the model and the specific calculations you can look into specifics.md. If you have any questions feel free to use the Discussions section of this repository to get in touch with us. We are looking forward to your ideas!


Literature:

NDVI and classification of NDVI-values:

Sequestration ability values/convert C in CO2 formula:

Difficulties when balancing CO2 emissions:

About

This repository is a collection of all manuals, scripts, models and data for our group project in the "GIS Analyses with FOSSGIS" seminar 2021/22 at the University of Heidelberg. Enjoy!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Batchfile 100.0%