£199.99 £139.99 for one year of Unlimited learning. Offer ends on 14 November 2022 at 23:59 (UTC). T&Cs apply

Find out more
Exercise: exploring drought in Kenya
Skip main navigation

Exercise: exploring drought in Kenya

Introduction to the exercise
© University of Twente

We will now move on to use the CATE toolbox from within Jupyter notebook to retrieve and analyse climate records of soil moisture. After doing this exercise, you will have a good idea about soil moisture, an essential climate variable, and how to analyse it to identify and quantify drought events.


Kenya is a drought-prone country (see Figure 1), mainly due to its particular environmental conditions. Agriculture supports up to 75% of Kenya’s population and generates almost all food requirements and drought is a significant constraint on rain-fed agricultural production, particularly in Kenya’s arid and semi-arid parts. In the last century, Kenya has faced almost 29 droughts, some of them in the past decade. Droughts in Kenya appear to be becoming more frequent and severe over time. As a result, crop failures and livestock deaths lead to severe food shortages in Kenya and food insecurity. The Climate Change Initiative, CCI hosts a soil moisture dataset that can generate an index of drought severity. In this exercise, you will be guided to retrieve Soil Moisture Deficit Index (SMDI) from soil moisture data generated by the Soil Moisture-CCI project.

Kenya: drought Figure 1: Drought leaves dead and dying animals in northern Kenya. Oxfam International, licensed under CC BY-NC-ND 2.0. (Click to expand)

This exercise explains how to identify the drought period in Kenya using soil moisture data from the open data portal to create a drought indicator. This exercise is based upon the Jupyter notebook. You are guided to use the Jupyter notebook and Climate Analysis Toolbox of the ESA CCI – Cate to apply soil moisture products provided by the soil moisture-CCI project.

Learning outcomes

1- Identify and access and soil moisture data from the Open Data Portal.

2- Create a drought index based on the soil moisture dataset for Kenya.

3- Identify periods and regions of drought in Kenya.

The input data is daily images of volumetric soil moisture content (SM, m3/m3) for Kenya and several years (2015-2020). There are different approaches to obtaining periods of droughts from soil moisture information. In this exercise, you will follow the ‘Soil Moisture Deficit Index’ to address drought in Kenya.


If you haven’t done so please follow the CATE from Jupyter notebooks to get started using the Jupyter notebook exercises.

CATE software and the open data portal

We’ll be querying the open data portal for soil moisture products produced by the Climate Change Initiative Soil Moisture project. The open data portal hosts a variety of datasets on the Jasmin infrastructure in the UK. These can be queried using the dedicated CATE python module. CATE allows retrieving data from the data portal using its web-interface.

In this Jupyter notebook exercise, we will directly call CATE functions and show you how these can be used in advanced workflows.

Starting the exercise

To perform the exercise and execute the code in this notebook you can run it through this link: Click to run the exercise.

Alternatively, you can download/clone the notebooks from github and run them through your own Jupyter notebook instance (this may initially take more time to setup, but does allow you to store your changes and extend the notebook exercises to your own needs).

Up next

Once you have done the exercise, it’s time to discuss what you can learn from the data.

© University of Twente
This article is from the free online

Understanding Climate Change using Satellite Data

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education