Skip to content

Installation

Patrik Zajec edited this page Aug 19, 2019 · 3 revisions

Note

The package can be used to download weather data from two different sources - namely ECMWF and OpenWeatherMap. Each source has its own set of dependencies - we do not need to install dependencies for ECMWF if we are only using OpenWeatherMap.

Installation - ECMWF

The following dependencies are required:

Note: eccodes-python is a replacement for pygrib used previously

Installing eccodes

To install eccodes + eccodes-python please follow the instructions on github page or confluence. In some linux distributions eccodes can by simply installed with:

$ sudo apt-get install libeccodes0

Installing ecmwf-api

$ pip install ecmwf-api-client

Installation OpenWeatherMap (owm)

To query the OWM api we need to install the requests library

$ pip install requests

Installing weather-data

Download the code from git repository as zip file and store it at ~/weather/weather-data-master.zip

~/weather/$ unzip weather-data-master.zip
~/weather/$ cd weather-data
~/weather/weather-data$ python setup.py install

Run the example:

~/weather/weather-data$ python example.py