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

Uploaded CPython 3.13macOS 11.0+ ARM64

radish_rs-0.2.4-cp313-cp313-macosx_10_12_x86_64.whl (507.8 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

radish_rs-0.2.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (482.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

radish_rs-0.2.4-cp312-cp312-macosx_10_12_x86_64.whl (507.9 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: radish_rs-0.2.4.tar.gz
  • Upload date:
  • Size: 577.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.4.tar.gz
Algorithm Hash digest
SHA256 8618683d01ae5cd3c077b9ea9349e3ed8dedbc4b422ed716b738236321ca2807
MD5 c5716fff202e7817ce76ec0b6443d112
BLAKE2b-256 f0cfc85f62b5519e169fce6bfe0403f5cb2665ed7f64d5077583056fa04b0767

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.4-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a6ce3576df8219581cc5af4a7927b2df79011a068835133d2fe480f4848d92d7
MD5 146c50d23058f433d481d877e2362d16
BLAKE2b-256 93762d273efc50be62799c183902c61c84a8a7b55f1d9d98f29830bc98a7bbd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c91d5cb62a0313a165ce3f59702484058bab994e61030e48973a07b29f1df25b
MD5 5ea124f7cd1c80ba48ce98e1c6265d92
BLAKE2b-256 0ed3ce0bd606dda2c0612c3c3e820f681aab8d9d0f4860d3bf8a292d1a5300f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 18f37acd2fbd0b585d17e546af2405d666f15372ffdb91b662994340c069c316
MD5 f738b4b42fde62c7558781f39080fb65
BLAKE2b-256 85ea289d8fb6ab8143bbeba6a17eb1b2f0c7ffc79583c425947749dd26964c6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b950417916e025b659153a11d33e3c3bc4908b0651648840073dd6f4cecb1f68
MD5 fc6738a2a9466fe004b564db18ad3933
BLAKE2b-256 2f696571db959fdca9ea9735e00c0ebdf164ead4dc210c76296b61ddc4780472

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 103d76129c58a703c573a9e1be7e0a64c614e6054a190feba968ea2fbf7e5d3e
MD5 29486b92839e7ddbe42dec257688464d
BLAKE2b-256 a5dc211cc2786ab41f2ab80b09e10cec1fd287e5a123614263cb148ef0043a75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3419129d248cd33b75d46ae0f0a5e3995f20fd03bc2fd37d04897d57bf731bed
MD5 2f4007bf0d0515219f54d26853ca0b03
BLAKE2b-256 59fddc16fd5e7f442bbca177950196887e4fe297830e9b30a14c553f82bbd6e6

See more details on using hashes here.

Provenance

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