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.3

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.3
File Size Uploaded Provenance
radarx-0.5.3.tar.gz 3.8 MB Without provenance Details

Built distributions (wheels)

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

Total release size: 121.7 MB

Release files / radarx-0.5.3.tar.gz

Download URL radarx-0.5.3.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
8db28f656cd78cb590e442d6505130a5816a853604701fd549daabcba54be266
BLAKE2b-256 checksum
How to use checksums
eb8b615edc06fc0ff29a4ce51613d25f9080fae2a65dd2d9f0429faec1c1bb82
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.3-cp314-cp314-win_amd64.whl

Download URL radarx-0.5.3-cp314-cp314-win_amd64.whl
Size 8.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
dc4f6f7ded1a4c9b2b0a7d9081f8796b85a090ff1e7a62cba72e0118209ac8d8
BLAKE2b-256 checksum
How to use checksums
15a9c43cc5aea51ffa0383b6c51c2bb3dcc880aeddb738b30ea93867ec9aebdc
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.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL radarx-0.5.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 8.5 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
92c82adbbbb5bf0b46e521bf7024528d19673b7836ab8fcfad5f7b6929d50f45
BLAKE2b-256 checksum
How to use checksums
b5b0d4de5fc210ba06b685d5dfe161d26fa4bd20a09f6233b27cf5e5eceabc82
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.3-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL radarx-0.5.3-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 8.1 MB
Tags CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
f3f3414ec47106644115cca977b2f22cac58c5f4cac149d139a391edb47c7141
BLAKE2b-256 checksum
How to use checksums
a379fd2dc371d8dcfe3e2cf12d659074696627c6a52c6e9e3ac27b9faa4549e5
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.3-cp314-cp314-macosx_11_0_arm64.whl

Download URL radarx-0.5.3-cp314-cp314-macosx_11_0_arm64.whl
Size 7.2 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2e39fa150239b8cbe35f78e6bb536d2793889033d07e66ddefe76f9b87359d10
BLAKE2b-256 checksum
How to use checksums
6bd22eb5b5fca374142de4a3f052a1703067336cf60aa196ae15e3eda89cb947
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.3-cp314-cp314-macosx_10_15_x86_64.whl

Download URL radarx-0.5.3-cp314-cp314-macosx_10_15_x86_64.whl
Size 7.5 MB
Tags CPython 3.14 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
e43f4766b2742a102c1ec3c6c18dd62e937505cd8b32eaa0ef5e5aa39ed664fe
BLAKE2b-256 checksum
How to use checksums
9f42e79d31a79eefa18594872238320ed2051eda560134d0219ad6587526fd72
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.3-cp313-cp313-win_amd64.whl

Download URL radarx-0.5.3-cp313-cp313-win_amd64.whl
Size 7.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
00524b4ed25eec63d9779b1aae31fc74ada3111068b63a5670618f9f26830719
BLAKE2b-256 checksum
How to use checksums
79d2204cd2e64e4b283e3f7216b6933b6a906f2ff49125284dcbc51fe22534d0
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.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL radarx-0.5.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 8.5 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6876589f7cbfc347a05a8c037ff63be26f39253b06845309c0d16d8ec6eb5e3d
BLAKE2b-256 checksum
How to use checksums
8d7d84a54066a5859457912e98efae4e27b47aec8b4013e0cfee15197669eeaf
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.3-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL radarx-0.5.3-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 8.1 MB
Tags CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
0359f25d085867fec2ebe0bf756f60a31fd8ab72c449338df6ac0e4b46c45d01
BLAKE2b-256 checksum
How to use checksums
a0144c7945324fab137b40bdd0f4e1922205628bdf2cbe8073b3d51d4aa2cc1e
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.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL radarx-0.5.3-cp313-cp313-macosx_11_0_arm64.whl
Size 7.2 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fd6e02e782394479c324cc7cc397e6f6cba8f98f27052435f69f9cae8c1ab670
BLAKE2b-256 checksum
How to use checksums
3be344e3d6ef79882e3b6fa49909cf46d3ffaba97f968d0e20e3e5e1ed2828dc
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.3-cp313-cp313-macosx_10_13_x86_64.whl

Download URL radarx-0.5.3-cp313-cp313-macosx_10_13_x86_64.whl
Size 7.5 MB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
e7a14fdf6358fccb722a631534dc814d5786a255210b248895c29a884b88df42
BLAKE2b-256 checksum
How to use checksums
b2d4f65926425f49ed1c2ec42d792177d044bac10b2dae6e84fff7ef8ec7e51d
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.3-cp312-cp312-win_amd64.whl

Download URL radarx-0.5.3-cp312-cp312-win_amd64.whl
Size 7.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1aed7456b42dac8fa25809b252f0029fd07dd966e4947650edd2d62f3494162e
BLAKE2b-256 checksum
How to use checksums
f5b0e03daeed82efe95f0bcda9100e1df29f41f1123869feee2891538d1509dd
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.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL radarx-0.5.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 8.5 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
cbb62c94100f4bc9dd631ca7d6bf0ff45fda5ea37b81cdf087d2fd076f90b377
BLAKE2b-256 checksum
How to use checksums
ddfe3d5443173637a51d693edb0dc8ae31be0541df94d7367917ae705cce7e2a
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.3-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL radarx-0.5.3-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 8.1 MB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
19d6eb2a1da658ebca0890a35f154ca706cd6532c4bbeb760db2a9c8bf6ba711
BLAKE2b-256 checksum
How to use checksums
4a4d105783849cd4374887d468b7da6f231a34aefebc0bd40c00abd50c179e6e
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.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL radarx-0.5.3-cp312-cp312-macosx_11_0_arm64.whl
Size 7.2 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f6b8a070a01bb77caafcd4391d83d143e033b42877f21c2d202d5078604f78a8
BLAKE2b-256 checksum
How to use checksums
d272358618c177c52b638a4ea22cdde7d5456bc19d9591bc78aa2fd7b111b9d1
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.3-cp312-cp312-macosx_10_13_x86_64.whl

Download URL radarx-0.5.3-cp312-cp312-macosx_10_13_x86_64.whl
Size 7.5 MB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
b3ebb49c84ae20e68cd1c0408daa3bfc59bd555d431f95afcdc341271d2bccc4
BLAKE2b-256 checksum
How to use checksums
06e1588628cdaf00993887e611ab97f2fae9c1d552ce0dc16f36aa9824885912
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.3

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