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

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.
[!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:
Fork the repository.
Create a new branch for your feature or bugfix.
Write tests for your changes.
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.
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
- Installation
- User Guide
- How to cite
- Contributing
- Credits
- History
- Unreleased
- 0.6.0 (2026-10-24)
- 0.5.3 (2026-10-22)
- 0.5.2 (2026-10-18)
- 0.5.1 (2026-10-16)
- 0.5.0 (2026-10-13)
- 0.4.0 (2026-10-05)
- 0.3.1 (2026-10-04)
- 0.3.0 (2026-10-04)
- 0.2.5 (2025-04-22)
- 0.2.4 (2025-01-20)
- 0.2.3 (2025-01-19)
- 0.2.2 (2024-12-19)
- 0.2.1 (2024-12-06)
- 0.2.0 (2024-11-18)
- 0.1.9 (2024-11-18)
- 0.1.8 (2024-09-18)
- 0.1.7 (2024-09-14)
- 0.1.6 (2024-09-10)
- 0.1.5 (2024-09-09)
- 0.1.4 (2024-09-08)
- 0.1.3 (2024-09-08)
- 0.1.2 (2024-09-08)
- 0.1.1 (2024-09-07)
- 0.1.0 (2024-09-05)
- Library Reference
- Deprecated argument names
- Floating point precision of results
- Finding fields and sweeps
- CF georeferencing of grids
- Method provenance
- Sweep-level functions over extra dimensions and dask arrays
- Radarx Accessors
- Citations
- Radarx Core
- Radar Fundmentals
- Attenuation and Scattering Coefficients
- Beam Geometry and Resolution
- Common Utilities
- Constants
- Doppler Radar Calculations
- Radar Geometry Calculations
- Radar Power Calculations
- Radar Principles
- Reflectivity-Based Retrievals
- Ray Tracing in a Refractive Atmosphere
- Rayleigh Scattering Approximations
- Radar System Characteristics
- T-matrix Scattering by Raindrops
- Timing Calculations
- Radar-Derived Variables
- Radarx Grid
- AWS Radar Data Utilities
- Soundings and ERA5 Profiles
- Parcel Thermodynamics: CAPE, CIN, Lifted Index, LCL, LFC and EL
- Surface Stations
- Vertically Pointing Radars and Wind Profilers
- Lightning Mapping Array Data
- Disdrometer Readers
- Radarx WRFDA Radar Observation Writer
- Radarx DART Radar Observation Writer
- Radarx Export to Files
- Radarx Level I Processing
- Radarx Machine Learning
- Radarx Retrieval
- Radarx Utils
- Radarx Visualization