DE Africa Tools Package

deafrica_tools is a Python package contains several modules with functions to load, analyse and output data from Digital Earth Africa. It is automatically installed in the Digital Earth Africa Sandbox environment. More information on installing this package can be found on the Tools section of the GitHub repository.

Core modules


Functions for computing remote sensing band indices on Digital Earth Africa data.


Machine learning functions for classification of remote sensing data contained in an Open Data Cube instance.


Functions for simplifying the creation of a local dask cluster.


Functions to retrieve ERA5 gridded climate data.



Functions for plotting Digital Earth Africa data.


Spatial analyses functions for Digital Earth Africa data.


Functions for calculating per-pixel temporal summary statistics on a timeseries stored in a xarray.DataArray.

Apps and widgets

deafrica_tools app subpackages can be accessed through

Geomedian widget: generates an interactive visualisation of the geomedian summary statistic.

Create an interactive map for selecting satellite imagery and exporting image files.

Functions for easily defining widgets in the context of DE Africa notebooks.


The code in this module is licensed under the Apache License, Version 2.0 (

Digital Earth Africa data is licensed under the Creative Commons by Attribution 4.0 license (


If you need assistance, please post a question on the Open Data Cube Slack channel ( or on the GIS Stack Exchange ( using the open-data-cube tag (you can view previously asked questions here:

If you would like to report an issue with this script, you can file one on Github: