Skip to main content

High-performance weather radar data library with Rust core

Project description

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.

Project details


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.2.3.tar.gz (573.7 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.2.3-cp313-cp313-manylinux_2_28_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

radish_rs-0.2.3-cp313-cp313-macosx_11_0_arm64.whl (477.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

radish_rs-0.2.3-cp313-cp313-macosx_10_12_x86_64.whl (502.6 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

radish_rs-0.2.3-cp312-cp312-manylinux_2_28_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

radish_rs-0.2.3-cp312-cp312-macosx_11_0_arm64.whl (477.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

radish_rs-0.2.3-cp312-cp312-macosx_10_12_x86_64.whl (502.7 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: radish_rs-0.2.3.tar.gz
  • Upload date:
  • Size: 573.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for radish_rs-0.2.3.tar.gz
Algorithm Hash digest
SHA256 26b77627a6a78f7c1c6865c9cbe8f7dce3f498c980728df2c1abbc49effe2397
MD5 5141a8d3e0e5904ff3bd2a54367368e3
BLAKE2b-256 3d2d25c604844e5b70914c7a23f6154ae97d9ab8ccb618ae07be0a4bc278b7af

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4baaa7095ee784b4097e9fb5776df340f3e08af77ca405749eef96a40472c91a
MD5 7c558b30c1a5213801531896fcbe65a6
BLAKE2b-256 52b8cb57a328e2b0c0069a6452aeb37a3a7e5edead06627b757f15122ef2c8ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a627bce59a5cea8675a5c613a66a4afbab63af91c5bf98f723bbec9cd7d969fc
MD5 f57a43e8dc884040579ac791b6417588
BLAKE2b-256 3b690b88406fcd927faca2801484757a989e1ed32292e10fd1b08e6fee482b3d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7aeb0cc90b833d5edec28e3a801aeee9240e808cb91005277666c2bff85a0b8f
MD5 8882324fafb1eebe249c6fbbc2689541
BLAKE2b-256 ceb525e55bb81c19a3aeda4c4fff3625e8b77545102351d580833a80ce51ab4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c275586bbeb72e969a28f8a3b77c8bd1613d31d84fa2eda990ae6c2a3577701
MD5 ba84ae3020079076a597273c5391c6a1
BLAKE2b-256 7e2f890920815ad5ee1317132f9d0b261bf22d7b87e10300f6a21f6b8c2369a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e4ed9d920fb29a994818d44f5f2012d29978f71c0712cc4be2d486ce2ccbf5c
MD5 4ff7e0c35339e6b693ad30b36eee325e
BLAKE2b-256 f280315bf0e903f4868318faca116990c6c5fa7971aa6346d19f85845aa2a684

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c8732ae21ee95a1a005de141547707bbe4a98f2f5b7fe3b247de322880507127
MD5 565b4aa5f79a1b3f934b4009b3a9382f
BLAKE2b-256 eb207fb0ad552534de026185e65fcf897b2b5f03fd87731309f3647e5d20f1bb

See more details on using hashes here.

Provenance

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

Supported by

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