In order to run \(\omega radlib\), you need to have a Python interpreter installed on your local computer, as well as a number of Python packages (Dependencies). We recommend installing Anaconda as it includes Python, numerous required packages, and other useful tools (e.g. Spyder).

Using Anaconda the installation process is harmonised across platforms. Download and install the latest Anaconda distribution for your specific OS. We recommend using the minimal Miniconda if you do not want to install a full scientific python stack.

We are constantly performing tests with these distributions (for the most recent 3 python versions).

If your Anaconda Python installation is working, the following command (in a console) should work:

$ python --version
Python 3.7.3 :: Continuum Analytics, Inc.

Now you can use the conda package and environment manager (conda documentation) to setup your \(\omega radlib\) installation.

  1. Add the conda-forge channel, where \(\omega radlib\) and its dependencies are located. Read more about the community effort conda-forge:

    $ conda config --add channels conda-forge
  2. Use strict channel priority to prevent channel clashes:

    $ conda config --set channel_priority strict
  3. Create a new environment from scratch:

    $ conda create --name wradlib python=3.8
  4. Activate the \(\omega radlib\) environment:

    $ conda activate wradlib
  5. Install \(\omega radlib\) and its dependencies:

    (wradlib) $ conda install wradlib

Now you have a conda environment with a working \(\omega radlib\) installation.

Test the integrity of your \(\omega radlib\) installation by opening a console window and typing calling the python interpreter:

$ python
Python 3.7.8 | packaged by conda-forge | (default, Jul 31 2020, 02:25:08)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

The Python prompt should appear. Then type:

>>> import wradlib
>>> wradlib.__version__

If everything is ok, this will show the running \(\omega radlib\) version. If the \(\omega radlib\) package is not found by the interpreter, you will get:

>>> import wradlib
ImportError: No module named wradlib

Alternatively, you can install the Bleeding edge code, but you have to keep track of \(\omega radlib's\) dependencies yourself.

Bleeding edge code


The \(\omega radlib\) version on PyPI might lag behind the actual developments. You can use the bleeding edge code from the \(\omega radlib\) repository. Note, however, that you need to make sure yourself that all Dependencies are met (see below).

Download the source, unzip, and run:

$ python install

Alternatively, you can add the \(\omega radlib\) directory to your environment variable PYTHONPATH.

Installing via pip

Although we recommend using the Anaconda Python Environment you can install \(\omega radlib\) from PyPi via pip.

Open a terminal and run:

$ pip install wradlib

Depending on your system you might need to be root (or sudo the above command) for this to work. pip will then fetch the source distribution from the Python Package Index and run the installation.

Afterwards it will check for any dependencies not met, yet.

Be aware that using pip we can only look for python-module dependencies. For example the numpy module itself depends on some other libraries, which need to be present in order for the module to compile properly after being downloaded by pip. We have no control over these dependencies and it is rather hard to give a complete overview.

Therefore we recommend trying to satisfy the dependencies using your favorite package management system.


\(\omega radlib\) was not designed to be a self-contained library. Besides extensive use of Numpy and Scipy, \(\omega radlib\) uses additional libraries, which you will need to install before you can use \(\omega radlib\).





>= 1.9

>= 1.19.0


>= 3

>= 3.3.0


>= 1.0

>= 1.5.0


>= 2.0.1

>= 3.1.0


>= 0.8.0

>= 0.10.0


>= 1.0

>= 1.5.0


>= 0.15

>= 0.17.0


>= 0.11

>= 0.12.0


>= 2.4

>= 3.1.0

You can check whether the required Dependencies are available on your computer by opening a Python console and enter:

>>> import <package_name>
ImportError: No module named <package_name>

This will be the response in case the package is not available.

In case the import is successful, you should also check the version number:

>>> package_name.__version__
some version number

The version number should be consistent with the above Dependencies.

The following libraries are used by netCDF4, h5py and gdal packages and should apply to these requirements:





>= 3.7.0

>= 3.8.0


>= 1.9.0

>= 1.10.0


>= 4.7.3

>= 4.7.4


>= 5.2.0

>= 7.0.0

Optional Dependencies

Apart from the obligatory Dependencies, some dependencies in \(\omega radlib\) are optional. This is because the installation of these dependencies can be somewhat tedious while many \(\omega radlib\) users will not need them anyway. In case users use a \(\omega radlib\) function that requires an optional dependency, and this dependency is not satisfied in the local environment, \(\omega radlib\) will raise an exception.

As for now, the following dependencies are defined as optional:

The speedup module

The speedup module is intended as a collection of Fortran code in order to speed up specific \(\omega radlib\) function that are critical for performance. In order to build the speedup module as a shared library, you need to use f2py ( f2py usually ships with numpy and should be available via the command line. To test whether f2py is available on your system, execute f2py on the system console. Or, alternatively, If it is available, you should get a bunch of help instructions. Now change to the \(\omega radlib\) module directory and execute on the system console:

$ -c -m speedup speedup.f

Now the speedup module should be available.

Known Issues

Depending on your OS and installation method you may encounter different problems. Here are some guidelines for attacking them.

We strongly recommend using the Anaconda conda package and environment manager (see Installation). Using conda-forge we will maintain the wradlib-feedstock for constant availability of recent \(\omega radlib\) versions.

If you can’t use Anaconda/Miniconda, it is generally a good idea to use your systems package manager to install dependencies. This will also take account for other needed bindings, libs etc.

If you encounter problems installing \(\omega radlib\), check on your favorite search engine or create an issue here with details on the problem or send an email on the wradlib-users mailing list.