Pyart Save

The Python-ARM Radar Toolkit. A data model driven interactive toolkit for working with weather radar data.

Project README

.. -- mode: rst -- The Python ARM Radar Toolkit (Py-ART)

|GithubCI| |CodeCovStatus|

|AnacondaCloud| |PyPiDownloads| |CondaDownloads|

|DocsUsers| |DocsGuides|

|ARM| |Tweet|

.. |GithubCI| image:: :target:

.. |CodeCovStatus| image:: :target:

.. |AnacondaCloud| image:: :target:

.. |PyPiDownloads| image:: :target:

.. |CondaDownloads| image:: :target:

.. |DocsUsers| image:: :target:

.. |DocsGuides| image:: :target:

.. |ARM| image:: :target:

.. |Tweet| image:: :target:

The Python ARM Radar Toolkit, Py-ART, is an open source Python module containing a growing collection of weather radar algorithms and utilities build on top of the Scientific Python stack and distributed under the 3-Clause BSD license. Py-ART is used by the Atmospheric Radiation Measurement (ARM) User Facility <>_ for working with data from a number of precipitation and cloud radars, but has been designed so that it can be used by others in the radar and atmospheric communities to examine, processes, and analyze data from many types of weather radars.

Important Links


If you use the Python ARM Radar Toolkit (Py-ART) to prepare a publication please cite:

Helmus, J.J. & Collis, S.M., (2016). The Python ARM Radar Toolkit
(Py-ART), a Library for Working with Weather Radar Data in the Python
Programming Language. Journal of Open Research Software. 4(1), p.e25.

Py-ART implements many published scientific methods which should also be cited if you make use of them. Refer to the References section in the documentation of the functions used for information on these citations.


The easiest method for installing Py-ART is to use the conda packages from the latest release and use Python 3, as Python 2 support ended January 1st, 2020 and many packages including Py-ART no longer support Python 2. To do this you must download and install Anaconda <>_ or Miniconda <>. With Anaconda or Miniconda install, it is recommended to create a new conda environment when using Py-ART or even other packages. To create a new environment based on the environment.yml <>::

conda env create -f environment.yml

Or for a basic environment and downloading optional dependencies as needed::

conda create -n pyart_env -c conda-forge python=3.9 arm_pyart

Basic command in a terminal or command prompt to install the latest version of Py-ART::

conda install -c conda-forge arm_pyart

To update an older version of Py-ART to the latest release use::

conda update -c conda-forge arm_pyart

If you are using mamba::

mamba install -c conda-forge arm_pyart

If you do not wish to use Anaconda or Miniconda as a Python environment or want to use the latest, unreleased version of Py-ART see the section below on Installing from source.


The configuration file in Py-ART specifies the default metadata, field names, colormaps and plot limits. A custom configuration can be loaded automatically be setting the environmental variable PYART_CONFIG to point to a custom configuration file. For additional details on this process see the documentation on the pyart.load_config function.

Extensions and related software

A number of projects are available which extend the functionality of Py-ART. These include:

  • ARTView <>_ : Interactive radar viewing browser.

  • pyrad <>_ : A real-time data processing framework developed by MeteoSwiss and MeteoFrance.

  • PyTDA <>_ : Python Turbulence Detection Algorithm.

  • SingleDop <>_ : Single Doppler Retrieval Toolkit.

  • DualPol <>_ : Python Interface to Dual-Pol Radar Algorithms.

  • PyBlock <>_: Python Polarimetric Radar Beam Blockage Calculation

Other related open source software for working with weather radar data:

  • wradlib <>_ : An open source library for weather radar data processing.

  • BALTRAD <>_ : Community-based weather radar networking.

  • MMM-Py <>_ : Marshall MRMS Mosaic Python Toolkit.

  • CSU_RadarTools <>_ : Colorado State University Radar Tools.

  • TRMM RSL <>_ : TRMM Radar Software Library.

  • RadX <>_ : Radx C++ Software Package for Radial Radar Data.

  • PyDDA <>_ : Software designed to retrieve wind kinematics in precipitation storm systems from one or more Doppler weather radars.


Py-ART is tested to work under Python 3.9, 3.10, 3.11, and 3.12.

The required dependencies to install Py-ART in addition to Python are:

  • NumPy <>_
  • SciPy <>_
  • matplotlib <>_
  • netCDF4 <>_
  • pooch <>_
  • Cython <>_
  • setuptools <>_

A working C/C++ compiler is required for some optional modules. An easy method to install these dependencies is by using a Scientific Python distributions <>. Anaconda <> will install all of the above packages by default on Windows, Linux and Mac computers and is provided free of charge by Anaconda. Anaconda also has their own compilers, which may be required for optional dependencies such as CyLP. These compilers can be found here:

Optional Dependences

The above Python modules are require before installing Py-ART, additional functionality is available of the following modules are installed.

  • TRMM Radar Software Library (RSL) <>_. If installed Py-ART will be able to read in radar data in a number of additional formats (Lassen, McGill, Universal Format, and RADTEC) and perform automatic dealiasing of Doppler velocities. RSL should be install prior to installing Py-ART. The environmental variable RSL_PATH should point to the location where RSL was installed if RSL was not installed in the default location (/usr/local/trmm), such as a anaconda path (/usr/anaconda3/envs/pyart_env/.

  • In order to read files which are stored in HDF5 files the h5py <>_ package and related libraries must be installed.

  • A linear programming solver and Python wrapper to use the LP phase processing method. CyLP <>_ is recommended as it gives the fastest results, but PyGLPK <>_ and CVXOPT <>_ are also supported. The underlying LP solvers CBC <>_ or GLPK <>_ will also be required depending on which wrapper is used. When using CyLP <>_ a path to coincbc is needed by setting the COIN_INSTALL_DIR path, such as (/usr/anaconda3/envs/pyart_env/).

  • Cartopy <>_. If installed, the ability to plot grids on geographic maps is available.

  • xarray <>_. If installed, gives the ability to work with the grid dataset used in grid plotting.

  • Basemap <>_. If installed, also gives the ability to plot grids on geographic maps, but Cartopy is recommended over Basemap.

  • wradlib <>_. Needed to calculate the texture of a differential phase field.

  • pytest <>_. Required to run the Py-ART unit tests.

  • gdal <>_. Required to output GeoTIFFs from Grid objects.

Installing from source

Installing Py-ART from source is the only way to get the latest updates and enhancement to the software that have not yet made it into a release. The latest source code for Py-ART can be obtained from the GitHub repository, Either download and unpack the zip file <>_ of the source code or use git to checkout the repository::

git clone

To install in your home directory, use::

python install --user

To install for all users on Unix/Linux::

python build
sudo python install

Development install using pip from within Py-ART directory::

pip install -e .


Py-ART is an open source, community software project. Contributions to the package are welcomed from all users.


The latest source code can be obtained with the command::

git clone

If you are planning on making changes that you would like included in Py-ART, forking the repository is highly recommended.


We welcome contributions for all uses of Py-ART, provided the code can be distributed under the BSD 3-clause license. A copy of this license is available in the LICENSE.txt file in this directory. For more on contributing, see the contributor's guide. <>_


After installation, you can launch the test suite from outside the source directory (you will need to have pytest installed)::

$ pytest --pyargs pyart

In-place installs can be tested using the pytest command from within the source directory.

Open Source Agenda is not affiliated with "Pyart" Project. README Source: ARM-DOE/pyart

Open Source Agenda Badge

Open Source Agenda Rating