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.2.tar.gz (561.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.2-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.2-cp313-cp313-macosx_11_0_arm64.whl (470.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

radish_rs-0.2.2-cp313-cp313-macosx_10_12_x86_64.whl (493.3 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

radish_rs-0.2.2-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.2-cp312-cp312-macosx_11_0_arm64.whl (470.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

radish_rs-0.2.2-cp312-cp312-macosx_10_12_x86_64.whl (493.3 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: radish_rs-0.2.2.tar.gz
  • Upload date:
  • Size: 561.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.2.tar.gz
Algorithm Hash digest
SHA256 c1c847a72910fd5230695e91067f67ad497d4bc74af84e3f6ba735f87cef1b96
MD5 175c9e36bc246c50358b269a64bd621c
BLAKE2b-256 b26a23d0b2df052cbfb4f5f588943e5fae9f44da67e93d876872e9de65d54168

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 781455edca13f86de63d3ed811bd17caa61fd1e43d59f1284239475965e5c283
MD5 bd5c3640c9e718f0026f7e942420d165
BLAKE2b-256 0e13a463166f4c712b68b5d635e0350e860c56f5533d951928b23cb5710dc3f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60efd2bdcf3837915fbbbf00189a2f8c02f417e35cb35930980cf872cfe100a6
MD5 a3b8e4c87ccab1e694a458b1442ad7e4
BLAKE2b-256 65f6e465044346582b70e6c1985e3185c17f304559ab43b16fa7abc4e0c8cb59

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 139930ae4aaaae9259e6ea54f79546c482925c192133fbf15e7d01868415c65d
MD5 98b5c3146005a4cc0fcf279978650ca3
BLAKE2b-256 8c56e9ee7990d2e2e165e5fe7fb38abeb1024263cb97ed2af1180e65005a5b9f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2b7cc73dbb7c6f2d13669bbf74474bebca9ba8b6eb0186b20eeb39bfed02d32b
MD5 6ba0692cb7ee1aebd2595b60b6f49810
BLAKE2b-256 324acf179d45d5677720dc13636822a7003a9b4f5cc46520de5e7be7da968ca8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd27b6f81245d60f3a2d46729bcfdca5e9abf358daf59297a913b87915011437
MD5 e1e5eb2f6fc06955e076270f719cade6
BLAKE2b-256 5c4b4928979bb19c0a611e9f34b650ae05ecc142a3c776e824896c0af16737f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 78177a452faf1b0290ca1464d1d7ba8aea86829848c9dc72c4756da70677310b
MD5 9172f9eda153eabf3b1f8fd8f8e7e859
BLAKE2b-256 d30afa515306a215cf36f12420f102024fe5146f957547cf146c970b59dd5d79

See more details on using hashes here.

Provenance

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