Skip to main content

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

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 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:

{{ apa_citation }}

Metadata

Release files for radarx 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for radarx 0.5.2
File Size Uploaded Provenance
radarx-0.5.2.tar.gz 3.8 MB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for radarx 0.5.2
File
radarx-0.5.2-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
radarx-0.5.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
radarx-0.5.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
radarx-0.5.2-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
radarx-0.5.2-cp314-cp314-macosx_10_15_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.15+ x86-64 Details
radarx-0.5.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
radarx-0.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
radarx-0.5.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
radarx-0.5.2-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
radarx-0.5.2-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details
radarx-0.5.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
radarx-0.5.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
radarx-0.5.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
radarx-0.5.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
radarx-0.5.2-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details

Total release size: 119.6 MB

Release files / radarx-0.5.2.tar.gz

Download URL radarx-0.5.2.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
15dd011b824d32dbc66de252525b2421b5d2c5a85d4139748e704aebebc66b8d
BLAKE2b-256 checksum
How to use checksums
dc0952ab4764855bb9fb46e0f2dfe434598e4d4ce2133e19eeb9d227a01ae143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp314-cp314-win_amd64.whl

Download URL radarx-0.5.2-cp314-cp314-win_amd64.whl
Size 7.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
14d77f578f60ce74a23ffef93765ef63b8e2522d486b42abd8fc5210c97c3133
BLAKE2b-256 checksum
How to use checksums
94670ffbe8d180410691e90bdb9264f1882893b8e968bf994001f5b62123c6f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL radarx-0.5.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
730e7c5c529cbc4a429bb35e41cd1b91ea7337ce97b71e26125fe392199c1c03
BLAKE2b-256 checksum
How to use checksums
9f973fb41545457d4b865ade480fd2b14fd6e3f22d0f57e0479ac8fee1767531
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL radarx-0.5.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 8.0 MB
Tags CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
cb4d53b0ae9712d8beac9b22be03921ec6d638bfb440b531e0e9bdb1cfc6f433
BLAKE2b-256 checksum
How to use checksums
f898edf0efa55a485b8e0690b1d7b6c100229576d8bd615b9303cd8f440f33c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp314-cp314-macosx_11_0_arm64.whl

Download URL radarx-0.5.2-cp314-cp314-macosx_11_0_arm64.whl
Size 7.1 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1b75c07e7362b9d63fdc0cd38b90a608e5f5e957541fe5fc656763498c18abca
BLAKE2b-256 checksum
How to use checksums
c35ebe3b01394dc4f417258540634e23df5f2da59aa962e3d5eb25c04aa8cc8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp314-cp314-macosx_10_15_x86_64.whl

Download URL radarx-0.5.2-cp314-cp314-macosx_10_15_x86_64.whl
Size 7.4 MB
Tags CPython 3.14 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
8d3d750670d95761a25a74f5da1052d281ae853087bb1ec89cb3296fb5b781a3
BLAKE2b-256 checksum
How to use checksums
573d594728a5d4da15fb1c4cd05824548d453c278b57acba7710f669b2e59e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp313-cp313-win_amd64.whl

Download URL radarx-0.5.2-cp313-cp313-win_amd64.whl
Size 7.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
e6391cf063fc830e11b2c96ec67b037041f359587f24023dbb7e08704f1bc919
BLAKE2b-256 checksum
How to use checksums
fcf0240fc8c5b0fc704d453f573f894e559bff173c346f74c808c8c67b41075d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL radarx-0.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4135015b3264e855dc1bce27e6c807ed0df8fae38b6c30d9f72ef231e1f2f644
BLAKE2b-256 checksum
How to use checksums
6c8336d1644cfc5f5ca73b24f1e544687aee195827e0d9f2da10fbe78b61abc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL radarx-0.5.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 8.0 MB
Tags CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
6fccdc891d3f36a1da57e670ca64e4e8e9bba2783aa1d5ce744d4e37c3b005a5
BLAKE2b-256 checksum
How to use checksums
d04d9746eed5c0ceb1b2de6322cc96d90991205ba5d8371848f86d7710287ed7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp313-cp313-macosx_11_0_arm64.whl

Download URL radarx-0.5.2-cp313-cp313-macosx_11_0_arm64.whl
Size 7.1 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a0a21267352957c9d23e7df82705ae5127f144ef0e9defbc415c4687137baf68
BLAKE2b-256 checksum
How to use checksums
4b764f507f8e289701fb2cce95bae6bb61df0fd228197825727a3b97fc6b301a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp313-cp313-macosx_10_13_x86_64.whl

Download URL radarx-0.5.2-cp313-cp313-macosx_10_13_x86_64.whl
Size 7.4 MB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
c00d11fe00b70c6adb618f33ff2a4c96bda0086209197962e17530f973aed383
BLAKE2b-256 checksum
How to use checksums
0bdf0edd82a9f3453384ac35e20de413ba176458951543a2b4c61095a056b716
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp312-cp312-win_amd64.whl

Download URL radarx-0.5.2-cp312-cp312-win_amd64.whl
Size 7.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1bf9ac743b9d92e201dcb98f2d8a0066189981ea67e1cc3353a0ac963e6b46c5
BLAKE2b-256 checksum
How to use checksums
a58bbfc1b7bee8479ed87310f8a4e82b9e7e5a12f7a111b1eb60d86a7d5f492f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL radarx-0.5.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
94e30ba00c286b2c73dc59dd20bc7ecd401575ce79780e154897316bd90777c0
BLAKE2b-256 checksum
How to use checksums
96b185119f5ae03ac8c19a6354b5da6d9b69b70006442aa908fb1f0ea408d05f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL radarx-0.5.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 8.0 MB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
8c8e523eef8307623d876d970c102edf33cd14d7c51b2491bae4be1fdf676770
BLAKE2b-256 checksum
How to use checksums
9865a9dd5b51f53667a9f94228ace1dc945064eef70bb86b561db5ea2faa9c48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL radarx-0.5.2-cp312-cp312-macosx_11_0_arm64.whl
Size 7.1 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3796fb74f811d89c015a4d5f195d7498135cea2369c66583642302f1e59e3828
BLAKE2b-256 checksum
How to use checksums
ec42bb24608726e4a0810a7ac93f8a2884f7c6379f7392a55deee970cbf45408
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radarx-0.5.2-cp312-cp312-macosx_10_13_x86_64.whl

Download URL radarx-0.5.2-cp312-cp312-macosx_10_13_x86_64.whl
Size 7.4 MB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
2577c4d1b35ce2e6eb9a5828c7041f0b460856730f18336935a95fb8d8efe6fd
BLAKE2b-256 checksum
How to use checksums
5ba38c74903a3faaf35bfac5c83a66519c2e6e4b451e70bafde6c2980e6b27df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for radarx 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page