-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Patrik Zajec edited this page Aug 19, 2019
·
3 revisions
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.
The following dependencies are required:
- eccodes + eccodes-python for reading and manipulating GRIB files
- ecmwf-api for querying the MARS dataset
Note: eccodes-python is a replacement for pygrib used previously
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
$ pip install ecmwf-api-client
To query the OWM api we need to install the requests library
$ pip install requests
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