xradar
Xradar includes all the tools to get your weather radar into the xarray data model.
What it is and what it does
Xradar is a community radar data toolkit built on xarray that standardizes the import and export of weather radar observations. It reads polar radar data from multiple formats—including NEXRAD Level 2, CfRadial1/2, ODIM_H5, and several proprietary formats—and represents them in a common xarray DataTree model aligned with the WMO FM301/CfRadial2 standard. This allows downstream processing pipelines to work with a single, predictable data structure regardless of source format.
The package is designed for the open-radar-science community and emphasizes interoperability with existing radar processing software. It supports georeferencing, angle reindexing, and format transformation, with particular strength in reading NEXRAD data (including streaming from S3 chunk buckets) and exporting to standardized formats. The codebase is actively maintained and has been ported from the wradlib library; it is considered stable for implemented readers and writers, though it remains in beta pending full standard adoption.
Use it for:
- Ingest NEXRAD Level 2 data from local files or S3 buckets for weather research and operational analysis.
- Convert between radar formats (e.g., proprietary Furuno or Gamic to CfRadial2) for data sharing and archival.
- Build xarray-based radar processing pipelines that leverage dask for distributed computation and existing xarray ecosystem tools.
- Georeference polar radar data and perform angle reindexing for gridded analysis or visualization.
- Standardize radar metadata and coordinates across multiple instruments and formats for multi-radar studies.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Xradar reads and writes weather radar data in multiple formats (CfRadial, ODIM_H5, NEXRAD, and others) and loads them into xarray DataTree structures for analysis and processing.
Yes. Xradar is actively maintained, has no known vulnerabilities, and fills a clear role in the open-radar-science ecosystem. Low install friction and permissive MIT licensing make it a straightforward choice for any weather radar data workflow. The beta status reflects pending standard finalization, not instability in implemented readers; if your format is listed as supported, the code is production-ready. Start here if you work with NEXRAD, CfRadial, or ODIM_H5 data.
Install
xradar on PyPI
pip
pip install xradaruv
uv add xradarpoetry
poetry add xradarInstalling xradar
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with recent releases; last commit 2026-08-01. Requires 11 runtime dependencies including xarray, h5py, and netCDF4, which are standard scientific Python packages.
License in practice
MIT license permits commercial and private use with minimal restrictions. Documentation is separately licensed CC-BY-SA-4.0.
Quickstart
pip install xradar
import xradar
dt = xradar.open_nexradlevel2_datatree('radar_file.gz')
dt.to_netcdf('output.nc')
Requires Python >= 3.11. HDF5 system libraries needed for h5py and netCDF4 dependencies.
Verify before relying
- Whether all import-only formats (DataMet, Furuno, Gamic, HPL, Iris, MRR, Rainbow, UF) are production-ready or remain experimental.
- Performance characteristics when streaming NEXRAD chunks from S3 or processing large radar volumes.
- API stability guarantees given the stated beta status pending CfRadial2/FM301 standard finalization.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — cmweather, dask, h5netcdf, h5py, lat_lon_parser, netCDF4, numpy, pyproj, scipy, xarray, xmltodict |
| Maintenance | actively maintained — 115 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 106,307/month — #12,659 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: xradar-0.12.0-py3-none-any.whl
Keywords: xradar
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
arm-pyartPy-ART provides weather radar data processing,…
permissive · top 15,000 on PyPI
open-radar-dataProvides a registry and download utility for…
permissive · top 15,000 on PyPI
cf-xarraycf-xarray adds a `.cf` accessor to xarray…
permissive · top 15,000 on PyPI
metarParses METAR and SPECI coded aviation weather…
permissive · top 15,000 on PyPI
pdbufrpdbufr reads BUFR (Binary Universal Form for…
permissive · top 15,000 on PyPI
cfgribcfgrib maps GRIB meteorological data files to…
permissive · top 5,000 on PyPI
herbie-dataHerbie downloads numerical weather prediction…
permissive · top 15,000 on PyPI
earthkit-meteoComputes meteorological quantities (potential…
permissive · top 15,000 on PyPI
xprojXProj is an Xarray extension that provides…
permissive · top 15,000 on PyPI