Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Preamble


Project objective

The objective of this project is to detect and map vegetation water stress using Sentinel-2 multi-date imagery.

You will spectral information to compare vegetation conditions between different dates and identify areas showing possible stress.

At this stage, the focus is on:


Study area

The study area is located in Casablanca, including the Bouskoura forest.

This area is well suited for the project because it includes:


To study vegetation water stress, it is recommended to compare images acquired during different periods of the year:

📂 Labworks data
📥 session_5_data.zip

Suggested spectral indices

The following indices are recommended for this project:

1. NDVI — vegetation activity

NDVI helps identify vegetation vigor.

NDVI = (B8 - B4) / (B8 + B4)
  • High NDVI → dense / healthy vegetation

  • Low NDVI → sparse vegetation, bare soil, urban surfaces

2. NDMI (or vegetation moisture index)

NDMI is useful for vegetation water content and moisture stress.

NDMI = (B8 - B11) / (B8 + B11)
  • High NDMI → wetter vegetation

  • Low NDMI → drier vegetation / possible stress

3. Optional indices

If useful, you may also test:

simple use of SWIR band (B11)

difference between dates:

NDVI_date2 - NDVI_date1

NDMI_date2 - NDMI_date1

These differences can help highlight areas where vegetation condition decreases over time.

Expected workflow

Task 1 – Select and prepare the data

  1. Download Sentinel-2 images for the selected dates

  2. Keep the relevant bands:

  1. Clip the images to the study area

  2. Check that the rasters are aligned and comparable


Task 2 – Compute the indices

Use Python or the Raster Calculator in QGIS to compute NDVI and NDMI for each date.

Expected workflow

Task 1 – Select and prepare the data

  1. Download Sentinel-2 images for the selected dates

  2. Keep the relevant bands:

  1. Clip the images to the study area

  2. Check that the rasters are aligned and comparable


Task 3 – Compare dates

Display the computed indices for the different dates.

Use:

Questions


Task 4 – Map potential stress classes

Create a simple classification of vegetation stress based on NDVI and/or NDMI or other selected features.

Example:

ClassMeaning
1Low stress
2Moderate stress
3High stress

This classification can be done:

Example idea

Use NDMI values to separate wetter and drier vegetation.
Then compare with NDVI to distinguish sparse vegetation from stressed vegetation.


Task 5 – Optional unsupervised classification

If time allows, you may test a simple unsupervised approach to group pixels with similar spectral behaviour.

The objective is to:

Possible variables:

Example method: K-means clustering


Task 6 – Prepare training data for the next session

In QGIS, create a vector layer and draw polygons representing different vegetation conditions.

Suggested classes:

Important recommendations

These polygons will be used as training data for supervised classification in the next session.


Expected outputs

Each group should produce:

  1. A short description of the selected dates

  2. At least one NDVI map

  3. At least one NDMI map

  4. A preliminary vegetation stress map

  5. A vector layer containing training polygons

  6. A short interpretation of the spatial and temporal patterns observed


Deliverables

At the end of the project preparation phase, each group should submit: