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
- Align reflectance to a 20 m UTM grid and keep usable cropland pixels after quality masking.
- 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 sourceSkills demonstrated
- Quality-masked satellite processing
- Seasonal reference validation on a held-out year
- Geospatial dashboard and exports
Project figures

March 2024 had the lowest median NDMI anomaly in the study (−0.256), relative to its same-month reference.
Contains modified Copernicus Sentinel data (2021–2025) and ESA WorldCover 2021 (CC BY 4.0). Analysis by Idriss Lemnouni.Figure source
Seasonal matching helped NDMI (0.1261 vs 0.1438 MAE) and slightly helped SAVI. The pooled median did slightly better for NDVI.
Benchmark by Idriss Lemnouni using modified Copernicus Sentinel data and ESA WorldCover 2021 (CC BY 4.0).Figure source