The task at hand today is to show NDVI of part of Turkana County in Kenya for the month of December 2020 using Landsat 8 bands 5 and 4 (NIR and R) downloaded via SCP plugin in QGIS 3.14.0. NDVI can help tell us the location or path that the pastoralists might have followed with their cattle as they avoid drier areas (low NDVI values) and move towards greener areas (high NDVI values) over time.

Versions of tools used

  1. R - version 4.0.3 “Bunny-Wunnies Freak Out”
  2. RStudio - version 1.3.1093
  3. raster - version 3.4.5
  4. mapview - version 2.9.0
  5. leaflet - version 2.0.3
  6. knitr - version 1.30
  7. rmarkdown - version 2.6

Loading the necessary libraries

Loading raster data (bands) into R. I only need the NIR and R bands to calculate NDVI for the study area.

## OGR data source with driver: ESRI Shapefile 
## Source: "D:\R\TURKANA\ndvi", layer: "Sub_Counties_Dissolved"
## with 1 features
## It has 14 fields