Idriss Lemnouni Get in touch
All projects

Geospatial / Environmental analysis

Monitoring seasonal crop conditions in Tadla

Does a same-month reference improve satellite moisture monitoring in Morocco’s Tadla plain?

Solution

I built a Rasterio pipeline and a Streamlit monitor to compare two dates, map anomalies and export local rasters and block statistics.

My contribution · I assembled the repeated-scene data, compared the two historical references, and built the local dashboard and exports.

Tools Python · Rasterio · Plotly · Streamlit

Results

Seasonal matching reduced NDMI mean absolute error by 12.3% in the 2025 holdout, from 0.1438 to 0.1261.

March 2024 had the lowest median NDMI anomaly (−0.256). The pooled reference performed slightly better for NDVI in the holdout.

2025 NDMI mean absolute error, seasonal baseline
0.1261 Source

Data & evaluation

Data sources

  • 20 Sentinel-2 L2A observations from February–May, 2021–2025
  • ESA WorldCover 2021 cropland mask (11,265 cells) and regional NASA POWER precipitation

Method

  1. Align reflectance to a 20 m UTM grid and keep usable cropland pixels after quality masking.
  2. Fit per-pixel pooled and same-month medians on 2021–2024. Score both on the same 40,742 valid 2025 pixel-month pairs.

Limitations

One scene per month can miss short events. Irrigation, crop calendars, harvest and residual cloud can alter the indices.

The pilot covers 4.8 km² with a static cropland mask. Field or soil moisture observations are needed to assess crop water stress.

Reproduce the study

Install the pinned Python requirements, use the scene and mask manifest to prepare the inputs, then run the benchmark or open the local Streamlit dashboard.

Local reproduction instructions and pinned source

Setup instructions for the local dashboard

Skills demonstrated

  • Quality-masked satellite processing
  • Seasonal reference validation on a held-out year
  • Geospatial dashboard and exports

Project figures