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.4.0.tar.gz (790.8 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.4.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.4.0-cp313-cp313-macosx_11_0_arm64.whl (606.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

radish_rs-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl (646.0 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

radish_rs-0.4.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.4.0-cp312-cp312-macosx_11_0_arm64.whl (606.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

radish_rs-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl (646.0 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: radish_rs-0.4.0.tar.gz
  • Upload date:
  • Size: 790.8 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.4.0.tar.gz
Algorithm Hash digest
SHA256 e99d6ab466cce995ee1b3793997be6cfb7d5a5c165f465290debb8e864515d8b
MD5 ba03694700ab60bfed2f1a907629a53c
BLAKE2b-256 84bf393da554313a572ce3f806a1e7568e0bbee0fe8c0cd26d596463d699812a

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.4.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.4.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f99ed94e4251b9d6b96c9b9311e35c278470547d88922d425f688fb21de28c76
MD5 3d1e76f5a37114ad418cef39f8994a62
BLAKE2b-256 0326b189fdbb2ecaaa27153fe7d2bc893c9c54798e34196ba20380b6b378cfaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.4.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.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radish_rs-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66b32cf819334d05001fae1d48adfe81f54fb8453d189e3daa71fd0eddb7610f
MD5 90aae481550cd9b26780591facf34473
BLAKE2b-256 fd5c42b3a6f13c2b2c67089496c7bd8d5d2fa7295c689847a761f20fc72c651e

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.4.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.4.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a084c755f971e1fb3f77fd2f829dfc4699eca52969491393988fa31616ee49f4
MD5 d0b21146f094e6070cdfa30719ed30a0
BLAKE2b-256 aa34f0edbfdbc5635ac068f313e59ef6b4e3dcd7f4a75418ce664ba63f813000

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.4.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.4.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 00aa5a4bf68317c67616f5682880d8eb2ecd239d83c34ae3a563307bfbad0295
MD5 2b5b270f9d755167da03c3521d03a56d
BLAKE2b-256 b6c6117ee6df805a2e8d0bf2f9b6a77d3b4009dd62f21773c9c1b2fd18506b34

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.4.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.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radish_rs-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acb74e6913f23a3b4399f6c28c7d77abd4ce1fe749f4f8e4660bb0adafe4ec1b
MD5 762961e9bb6e1b052022f136295e6900
BLAKE2b-256 651c3d378f699e6b5e3ff6bab26a92269a50c713b84e090b81ae9040c5c440ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.4.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.4.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6c478c96c84c85658bb0f3c8d5bb606cf09bb44a8120d3cfe1967ed5657f3361
MD5 750e7e1b88f2bb505837d3f5d761d72d
BLAKE2b-256 6aecd9cba41a07e14a44a09ff0c4ab9ff44f15b6493b253a9a41cb5b6b78bf55

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.4.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

This release

0.4.0 This release

7 files

0.3.0

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