How to download Climate Change data from the World Bank Data API with Python

Screen Shot 2018-02-19 at 9.25.34 AM.png

World Bank has a Climate Change Knowledge Portal with information, data and reports about climate change around the world. The portal has an Climate Data API as REST framework that can provide Precipitation and Temperature data on historic and modeled dataset from 15 global circulation models (CGMs) and 2 emissions scenarios at country and basin spatial scale. There is a Python package called wbpy that makes really easy the access to the Climate Data API by few lines of code. There are options to download data on monthly, annual and decade timescale as Python dictionary data type. This tutorial show the main parts of the API, the involved codes and a example of usage for historic and future data.

 

Tutorial

 

Useful links

World Bank Climate Data API:

https://datahelpdesk.worldbank.org/knowledgebase/articles/902061-climate-data-api

wbpy website:

https://github.com/mattduck/wbpy

Climate Change Knowledge Portal:

http://sdwebx.worldbank.org/climateportal/

Water Base (for basin information):

http://www.waterbase.org/download_data.html#id10

Standard country or area codes for statistical use

https://unstats.un.org/unsd/methodology/m49/

IPCC emissions scenarios

http://www.ipcc.ch/ipccreports/sres/emission/index.php?idp=3

 

Input data

Download the input data on this link.

 

 

Saul Montoya

Saul Montoya es Ingeniero Civil graduado de la Pontificia Universidad Católica del Perú en Lima con estudios de postgrado en Manejo e Ingeniería de Recursos Hídricos (Programa WAREM) de la Universidad de Stuttgart con mención en Ingeniería de Aguas Subterráneas y Hidroinformática.

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.