Year:2022
QGIS
Python
Urban green mapping
Year:2022
QGIS
Python
Description
In 2019, The city of Prague (capital of the Czech Republic) set a goal of planting a million trees on its territory within eight years
Details here: zastromujprahu.cz and adaptacepraha.cz
Out of curiosity, I want to map how total % urban green has improved after this policy was implemented.
It's best to use satellite observations for such task as it's very similar to landuse change mapping.
Altought, in this case, the simpler method based on normalized difference vegetation index (NDVI) can be used. This method utilized the Sentinel-2 satellite imagery.
1.) Download:
Shapefile of municipality districts of Prague city.
Cloudless Sentinel-2 satellite imagery from 2020 to 2021. Probably the easiest option for this is to use Semi-Automatic Classification Plugin for QGIS by amazing Luca Congedo.
Note: Sentinel-2 images were downloaded for summer period (June to August) from 2015 to 2021. This mostly corresponded to only one cloudless image only for each year.
2.) Calculate NDVI
Equation for NDVI goes as: NDVI = (NIR-RED) / (NIR+RED).
These refers to: NDVI = (B8 - B4) / (B8 + B4) of Sentinel-2.
In my case, I did this by raster calculator in QGIS.
3.) Divide image to non-vegetation and vegetation
Again, I used raster calculator with conditional statments where NDVI>0.19 was vegetation and NDVI<0.19 was non-vegetation.
4.) Calculate percentage of urban green in each municipality district
There are many ways how to handle this task. I used zonal statistics where raster values were summed to each polygon.
Lastly, to obtain percentage of vegatation the sum was divided by count.
Also, let's have a look how Prague city centre vegetation has changed since 2015.
There was a positive trend in development. Altought, this result also highligted a seasonality changes in summer during wet/dry periods. The drop in 2020 was probably caused by unusual drought summer, thus, low-vegetatation (grass+shrub) died or has too low NDVI.
There was a positive trend in development. Altought, this result also highligted a seasonality changes in summer during wet/dry periods. The drop in 2020 was probably caused by unusual drought summer, thus, low-vegetatation (grass+shrub) died or has too low NDVI.
---Note:
The results of this project cannot be interpreted as the absolute truth. It is always necessary to do further analysis.
There is also possibility to detect only trees, so more accurate analysis can be done in future.