Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

BillyTevin11/Annual-Cumulative-Precipitation-and-Average-Temperature-Correlation-Analysis

Domain:

climategeospatial
Creator:
Bil
Host:
This repository is focused on Annual Cumulative Precipitation and Average Temperature Correlation Analysis in Nairobi County, Kenya. # Annual Cumulative Precipitation and Average Temperature Correlation Analysis in Nairobi County This project analyzes the correlation between annual cumulative precipitation and average temperature in **Nairobi County, Kenya, from 2010 to 2019**. It utilizes Earth Engine to access the TerraClimate dataset, which provides monthly climate data. The analysis is performed using the _xarray_ and _xee_ Python libraries, enabling the handling and analysis of multi-dimensional geospatial data. The study first defines Nairobi County as the region of interest using the _FAO GAUL Level 2 administrative boundaries dataset_. It then loads the _TerraClimate_ dataset, filters it for the specified time period, and selects _precipitation (pr), minimum temperature (tmmn), and maximum temperature (tmmx)_ bands. This Earth Engine data is converted into an xarray dataset for easier manipulation. **Annual cumulative precipitation** is calculated by summing the monthly precipitation data for each year. **Annual average temperature** is derived by averaging the monthly minimum and maximum temperatures for each year, applying a scale factor of _0.1_ as per the TerraClimate dataset documentation. The resulting annual precipitation and temperature data are visualized using maps generated with the _matplotlib_ library. Finally, the project computes the _Pearson correlation coefficient_ between the annual cumulative precipitation and average temperature across the _time_ dimension for each spatial location within Nairobi County using the _xr.corr()_ function. The resulting correlation map is also visualized.

Visit

github.com

Similar

Precipitation and Temperature (1979-2020) and Annual Streamflow (1959-2001) Data for Sasumua River Watershed, Kenya.Annual standardized yield and precipitation (a), maximum temperature (b), and minimum temperature (c), using maize data in Eastern Africa (1961–2002).Combined impact of average temperature and precipitation on maize yield in the different regions of Ghana.Trend analysis of temperature and precipitation in Trarza region of MauritaniaCrispusKipkorir/Annual-precipitation-in-Kenya-Counties_2025African Timeseries Annual Temperature (1901-2021)

Precipitation and Temperature (1979-2020) and Annual Streamflow (1959-2001) Data for Sasumua River Watershed, Kenya.

The Sasumua River Watershed in Kenya covers an area of 107 km2. The

Annual standardized yield and precipitation (a), maximum temperature (b), and minimum temperature (c), using maize data in Eastern Africa (1961–2002).

Annual standardized yield and precipitation (a), maximum temperature (b), and minimum temperature

Combined impact of average temperature and precipitation on maize yield in the different regions of Ghana.

Combined impact of average temperature and precipitation on maize yield in the different regions

Trend analysis of temperature and precipitation in Trarza region of Mauritania

Abstract Trend analysis of annual temperature and precipitation time series data co

CrispusKipkorir/Annual-precipitation-in-Kenya-Counties_2025

Mapping the average rainfall for the year 2025,across 47 counties in Kenya # Annual-precipitation-

African Timeseries Annual Temperature (1901-2021)

Publisher: World Bank · Source: OpenAfrica · License: cc-by · Updated: 2023-10-17 Captured mean ann