Skip to main content

Radish Python Bindings

High-performance weather radar data library with Rust core and Python bindings.

Installation

From source

# Install maturin
pip install maturin

# Build and install in development mode
cd python
maturin develop --release

# Or build a wheel
maturin build --release
pip install target/wheels/radish-*.whl

With xarray support

pip install radish[xarray]

Quick Start

Basic Usage

import radish

# Read a CfRadial1 file
volume = radish.read_cfradial1("cfrad.nc")

# Access metadata
print(f"Instrument: {volume.metadata.instrument_name}")
print(f"Sweeps: {volume.num_sweeps}")

# Access sweep data
sweep = volume.get_sweep(0)
print(f"Rays: {sweep.num_rays}, Gates: {sweep.num_gates}")
print(f"Moments: {sweep.moment_names()}")

# Access moment data
dbz = sweep.get_moment("DBZH")
data = dbz.data()  # Returns numpy array
print(f"Reflectivity shape: {data.shape}")

With xarray

from datatree import DataTree

# Open as DataTree
radar = DataTree.open_datatree("cfrad.nc", engine="radish")

# Access sweeps
sweep_0 = radar["sweep_0"].ds

# Work with xarray
sweep_0["DBZH"].plot()

Performance

Radish uses Rust for performance-critical operations:

  • 10-100x faster file parsing than pure Python
  • Memory-efficient data structures
  • Minimal Python overhead

Development

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black radish/
ruff check radish/

# Build documentation
cd docs && make html

License

Licensed under either of:

at your option.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

radish_rs-0.3.0.tar.gz (756.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

radish_rs-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl (7.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

radish_rs-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (594.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

radish_rs-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl (631.5 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

radish_rs-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (7.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

radish_rs-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (594.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

radish_rs-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl (631.5 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

Details for the file radish_rs-0.3.0.tar.gz.

File metadata

  • Download URL: radish_rs-0.3.0.tar.gz
  • Upload date:
  • Size: 756.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for radish_rs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0969b1d4ca33ede623bbcd8b66a24680a706a1351dc5dd1e10ccd046cfc2fa69
MD5 56f5a5d34a62b3819233693625fc7fc8
BLAKE2b-256 660a1fb08387450b468003953e5fe6d31e77d17057f07f0d3297bdc5723833bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.3.0.tar.gz:

Publisher: release.yml on aladinor/radish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file radish_rs-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2fa75d367fb164b84d8aa34c6b7024414d84547a95c022dde8b59f1549dab1af
MD5 98ced5d9a05c5cba0c832e437b3bf4c4
BLAKE2b-256 e293e30de1e95526fb619ecad18983d8e0658739a344c9be1f1c20fe46dfb483

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: release.yml on aladinor/radish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file radish_rs-0.3.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radish_rs-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a346150cae086a00b729a8392aebcfe79865ee583a74e83f7b0af338fed3b62
MD5 fd9481533a53afa972502d95b04c2ad0
BLAKE2b-256 4fec0424e648fc2d9c0475906586716870cbaea2fbb69287086c944e3f4a3fd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.3.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on aladinor/radish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file radish_rs-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9c95d651cac7055d7831184739ed91c2f7ca754d3065e16de2d8eb18a6d0c4b8
MD5 b81d6d6531cec68ab6b2b524a8c8878b
BLAKE2b-256 261a3069b8d53cce44d35ab66300cdada1863f1b7892a32ac82e0ca98947c1be

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: release.yml on aladinor/radish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file radish_rs-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 789e64e82adf4ed708f5e866580434f652febf65cb99606e380769a06ec93e1c
MD5 21bb7eb39f99d4642fe293e22fbd06c5
BLAKE2b-256 ee988b5ad55e1065a3db0550e443fca37861fde43cddf4704cf51eddeffc9212

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: release.yml on aladinor/radish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file radish_rs-0.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radish_rs-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 556e73ce445e049bd52c7bf454db6a31dda96f4a78366a201ab09e9d18d8547b
MD5 cecd0b087ee2896003100b97c259d2dc
BLAKE2b-256 69d04aef5c5858334897f15309d7f5c9698a9f87cf909ddf026b42eba51322f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.3.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on aladinor/radish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file radish_rs-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 735d8b4ffd2cba5019475c007a8e50fc9261a2ab54d85bfafa3bc6840c80a036
MD5 36185cb6ba214c905c5ff51359377c1b
BLAKE2b-256 ebe94c5c6c11a66a900de221dcc988b4d5047b775c1bc87ecd6f319bdac3a29c

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: release.yml on aladinor/radish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.4.0

7 files

This release

0.3.0 This release

7 files

0.2.5

7 files

0.2.4

7 files

0.2.3

7 files

0.2.2

7 files

0.2.0

13 files

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page