Release: 0.6.1.dev7
Date: 2026-11-23

Radarx#

Radarx Logo

DOI Python Versions PyPI Version PyPI Downloads

Conda Version Conda Downloads

CI Build distribution Docs License pre-commit enabled

Black Ruff CodeFactor codecov Codacy Badge

Radarx is a Python library for weather radar data processing and visualization. It builds on xradar, which reads radar data from many formats into xarray DataTree structures, and adds gridding, retrievals and plotting through the .radarx accessor.

Project Status: Beta

[!WARNING] This project is currently in high development mode. Features may change frequently, and some parts of the library may be incomplete or subject to change. Please proceed with caution.

Key Features#

  • Fast, accurate gridding: Cone gridding interpolates within each sweep and then between sweeps, using the radar’s own geometry. A compiled C++ kernel grids tens of millions of cells in a fraction of a second, with no smoothing radius to tune (dtree.radarx.to_grid()). Barnes interpolation is also available.

  • CAPPI retrieval: Constant-altitude PPIs with several methods (dtree.radarx.create_cappi()).

  • Interactive plotting: hvplot-based range-azimuth, PPI, RHI, CAPPI and Max-CAPPI views on DataArrays, Datasets and DataTrees (.radarx.plot), plus matplotlib plots.

  • Unstructured grids: Convert a sweep into a uxarray dataset with one cell per gate, for true gate footprints, area-weighted statistics and remapping (.radarx.to_uxarray()).

  • Radar fundamentals: Functions for radar equations, beam geometry, Doppler, attenuation and more (radarx.fundamentals).

  • Cloud data access: List and download NEXRAD and MRMS data from AWS (radarx.io).

Installation#

You can install radarx using conda from the conda-forge channel (recommended):

conda install -c conda-forge radarx

You can also install radarx via pip from PyPI:

python -m pip install radarx

Optional features need extra packages:

python -m pip install "radarx[plot]"     # interactive hvplot plots
python -m pip install "radarx[uxarray]"  # unstructured grids with uxarray

With conda, install them directly, e.g. conda install -c conda-forge hvplot datashader or conda install -c conda-forge uxarray spatialpandas geopandas.

Barnes gridding (method="barnes") needs fast-barnes-py, which supports Python < 3.13 only: python -m pip install fast-barnes-py. The default cone gridding needs no extra packages.

Alternatively, you can install it from source by cloning the repository and running:

git clone https://github.com/syedhamidali/radarx.git
cd radarx
python -m pip install .

Building from source compiles the C++ gridding kernel if a C++ compiler is available; otherwise radarx falls back to an equivalent NumPy implementation.

Usage#

Read a radar volume with xradar, then grid, retrieve and plot it with radarx:

import xradar as xd
from open_radar_data import DATASETS

import radarx  # noqa: F401  registers the .radarx accessors

filename = DATASETS.fetch("KLBB20160601_150025_V06")
dtree = xd.io.open_nexradlevel2_datatree(filename)

# 3D grid with cone gridding (500 m spacing, 0.5 to 15 km height)
grid = dtree.radarx.to_grid(
    data_vars=["DBZH"],
    x_lim=(-150e3, 150e3), y_lim=(-150e3, 150e3), z_lim=(500, 15e3),
    x_step=500, y_step=500, z_step=500,
)

# interactive plots (requires radarx[plot])
dtree.radarx.plot.ppi("DBZH", sweeps=0)
grid.radarx.plot.max_cappi("DBZH")

See the documentation for more examples, including CAPPIs, IMD data (read with xradar’s IMD backend) and unstructured grids.

Documentation#

For full documentation, see radarx.readthedocs.io.

Contributing#

Contributions are welcome! If you’d like to contribute, please follow the steps below:

  1. Fork the repository.

  2. Create a new branch for your feature or bugfix.

  3. Write tests for your changes.

  4. Submit a pull request.

Please ensure that your code passes the pre-commit hooks and test suite before submitting your PR.

License#

Radarx is licensed under the MIT License. See the LICENSE file for more details.

Authors#

  • Syed Hamid Ali

Citation#

If you use radarx, please cite it with its Zenodo DOI, 10.5281/zenodo.14699306. The DOI covers all versions and always resolves to the latest release, so citations of every version are counted together; add the version you used to the citation.

GitHub’s “Cite this repository” button (top right of the repository page) gives the citation in APA and BibTeX. Both, and the text below in the rendered documentation, are generated from CITATION.cff, so they always match the latest release.

Cite radarx as:

Syed, H. A. (2026). Radarx: An Xarray-based Python package for radar data processing (Version 0.6.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.14699306

Contents

Indices and tables#