Mapping the Interplay; Temperature vs Precipitation in Africa

Project
Published

April 5, 2026

Visualizing climate data usually means looking at two separate maps: one for how hot it is and another for how much it rains. But the real story lies in how these two variables dance together. As part of my recent upskilling journey, I used TerraClimate 2025 data to create Bivariate Choropleth Maps for Africa and Kenya, offering a unique perspective on regional climate patterns.

Why Bivariate?

A standard map tells you “it’s dry here.” A bivariate map tells you “it’s dry and scorching” versus “it’s dry and cool.” By using a two-dimensional color matrix, we can visualize the relationship between Maximum Temperature (\(T_{max}\)) and Precipitation (\(PPT\)) simultaneously.

The Workflow: From NetCDF to Visuals

The process involves blending geospatial analysis with creative data visualization. Here’s a high-level look at the technical pipeline:

Bivariate Map for Kenya Bivariate Map for Kenya

Key Takeaways

Looking at the results, the contrast is striking. In the Africa map, you can clearly see the vast “Hot & Dry” expanse of the Sahara compared to the “Hot & Wet” tropical belt of the Congo Basin.

Switching to the Kenya map reveals even more granular detail—highlighting how topography influences these variables, from the humid coastal regions to the arid northern landscapes. This exercise wasn’t just about coding; it was about finding a more nuanced way to tell the story of our changing climate.

Data Credit: TerraClimate 2025 | Tools: Python (Matplotlib, Xarray, Geopandas)

Tutorial: Milan Janosov tutorial

Back to top