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.5.tar.gz (579.9 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.5-cp313-cp313-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

radish_rs-0.2.5-cp313-cp313-macosx_11_0_arm64.whl (482.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

radish_rs-0.2.5-cp313-cp313-macosx_10_12_x86_64.whl (507.4 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

radish_rs-0.2.5-cp312-cp312-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

radish_rs-0.2.5-cp312-cp312-macosx_11_0_arm64.whl (483.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

radish_rs-0.2.5-cp312-cp312-macosx_10_12_x86_64.whl (507.5 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: radish_rs-0.2.5.tar.gz
  • Upload date:
  • Size: 579.9 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.5.tar.gz
Algorithm Hash digest
SHA256 d14369ebb474acfc3ad8f0a708ab81d2a9752c4af86210ad48ef913002144fbe
MD5 1babbb0ee0b89f5a7157a76b20a9e059
BLAKE2b-256 6c123c07fe45a07b0cd3a41f2ae12d8471724c7ee221f08af45e1229a422455b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.5-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5667e991728996d4671d9192e02a40954b4e9ad9861142969f5450546ed01da8
MD5 0db27f1a36ffbded2b847c46256de1d4
BLAKE2b-256 cc3d0a22a7513bd20bd79d1ada550b10d595aa3319edd23c98717e1fe5c52e05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ace1b742dc7e4813f882609d9b1329d07a1402e937a0d9c8f97daab6e36ba287
MD5 3ae63eb0457904c4907b31c97770f776
BLAKE2b-256 d1bcd3c7260b4879ab56cd75436c779f6a4bbf6d26a5835a336014e9f9af736d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.5-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 014322ec91a30c9ea238837057efad5b9e51cc7576baa4d150af3f7710107397
MD5 c0178df831a18d7839540bc2fb7090b2
BLAKE2b-256 feba291ed358d1df16cb0d80dcaf318ecc543239b4271e9d0f595fd27b777bc5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.5-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 091b3f7fc2699de7789f8789856ade17c377400181ef94d7b8374334a8b5f440
MD5 6ee80bd5e7dc43aa7dabee6679164a4e
BLAKE2b-256 97d50d94565bac50dc74568c1c65a0cde388dc6daafec2717fd2e64a458c0ad5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 431b9b03c22eaa5a1891e9cb9e2749bc23997432f4be918fe762c1f90abfeac5
MD5 9ecdb03702bcf3062b2ad9b4d8c38c90
BLAKE2b-256 e85e16c192689e2489365d701b526344cd66c222f38c3ab3b46172d05c516210

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.5-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1520e68936e21a51f92c09c457a0675c5aa0c62d8d75b6713762309499532701
MD5 e60729f34c4183308065461a41d8c471
BLAKE2b-256 95843fd6b9bc8a9143e7acf8f39aa5d7d2a43440e36107388290f384ba0a885f

See more details on using hashes here.

Provenance

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