Logo Lanfrica

YoussefGlb/climate-prediction-morocco-2050

Domain:

climate

Record type:

softwaremodel
Creator:
You
Host:
# 🌍 Climate Prediction β€” Morocco (2025–2050) Machine learning pipeline to predict future climate variables across **Morocco**, trained on historical TerraClimate data (1981–2024) and visualized through KΓΆppen-Geiger classification maps. --- ## πŸ“ Project Structure ``` climate-prediction-morocco/ β”‚ β”œβ”€β”€ ML/ # XGBoost-based approach β”‚ β”œβ”€β”€ projectionML.py # Main training & prediction script β”‚ β”œβ”€β”€ koppenviwer.py # Tkinter GUI β€” KΓΆppen-Geiger map viewer (basic) β”‚ β”œβ”€β”€ koppen_viewer_extended.py# Tkinter GUI β€” extended viewer with trends & animation β”‚ └── data/ # ⚠️ Local only β€” not tracked by Git β”‚ └── {year}/ β”‚ └── {variable}/ β”‚ └── morocco_{variable}_{year}_{month:02d}.tif β”‚ β”œβ”€β”€ DL/ # Deep Learning approach β”‚ β”œβ”€β”€ projectionDL.py # LSTM model β€” same pipeline, DL counterpart β”‚ └── data/ # ⚠️ Local only β€” not tracked by Git β”‚ └── {year}/ β”‚ └── {variable}/ β”‚ └── morocco_{variable}_{year}_{month:02d}.tif β”‚ β”œβ”€β”€ .gitignore └── README.md ``` --- ## πŸ”¬ What It Does | Step | Script | Description | |---|---|---| | Train & Predict (ML) | `ML/projectionML.py` | Trains one XGBoost model per climate variable, generates annual + monthly GeoTIFF predictions for 2025–2050 | | Train & Predict (DL) | `DL/projectionDL.py` | Trains a single multi-output LSTM model for all 6 variables jointly | | Visualize | `ML/koppen_viewer_extended.py` | Tkinter GUI β€” load historical or predicted data, explore variables, compare periods, animate over time | --- ## 🌑️ Climate Variables | Variable | Description | Unit | Aggregation | |---|---|---|---| | `tmax` | Maximum temperature | Β°C | Monthly mean | | `tmin` | Minimum temperature | Β°C | Monthly mean | | `prec` | Precipitation | mm | Monthly sum | | `vap` | Vapor pressure | kPa | Monthly mean | | `ws` | Wind speed | m/s | Monthly mean | | `def` | Climate water defici …