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.0.tar.gz (480.3 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.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (530.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

radish_rs-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl (556.2 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

radish_rs-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

radish_rs-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (530.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

radish_rs-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl (555.9 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

radish_rs-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

radish_rs-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (530.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

radish_rs-0.2.0-cp310-cp310-macosx_10_12_x86_64.whl (556.0 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

radish_rs-0.2.0-cp39-cp39-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

radish_rs-0.2.0-cp39-cp39-macosx_11_0_arm64.whl (530.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

radish_rs-0.2.0-cp39-cp39-macosx_10_12_x86_64.whl (556.4 kB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: radish_rs-0.2.0.tar.gz
  • Upload date:
  • Size: 480.3 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.0.tar.gz
Algorithm Hash digest
SHA256 dd2d75d1fe12726a308049a2733340be7f458bb25fafc869385e9e9b212e4ef5
MD5 8ab0a6a98999164a8094e4cc2b6f3ec0
BLAKE2b-256 df1d4158a511bbeb0c2368c3d134045c04e5b1b9600d4dde1728fc8372eac770

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9520c6971e60a476e19ba00b25f1decbf4ec91929035f4e8d1b9c7c106b0cb83
MD5 83f0bd926ef16f1b73367704413033be
BLAKE2b-256 f4d5b384ad4b1392ce33f30ace974f72699cb81550173bcef622badb92e1fc59

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98a46eb0ebe238a07160de86d30b39b638906994da14320aa7313edb7e8fb7fc
MD5 2d0abcb5b6e2baee44ca395f2797932d
BLAKE2b-256 72ba53a01388dc44b1ad41fcd197d4720723efa68ab56dda557cc27207fd798c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4dcaae865938ec26793103f79e410c574405a949b750ce5f201a7ae762d65f60
MD5 a639a85534d2bf45e6fc4bed5b43164f
BLAKE2b-256 a25238ff9a44447eaae03d9f6b917b00bc82137b0091826eebd9483c03278489

See more details on using hashes here.

Provenance

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

File details

Details for the file radish_rs-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b83d0d5cfbaa372445b65be5cffd07dd11bc5b6d2ef636fd2e6ece937fc516ca
MD5 3a4076439d400c89e6965f07ce0cb4e1
BLAKE2b-256 7d91e2481a80d7cc808fa05b57f889a14587be02778496b8b10f6f16db130f79

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.2.0-cp311-cp311-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.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7afb7de283d2e8d82d5cc41f9e15093d2d69df8684e2423bbc83ba706b7ff0b8
MD5 7d90dc4522737f31da7095d271f06411
BLAKE2b-256 4d0557ef18234d5c497ba26c8d98428dd1e6d8a19fcab9f01183a53a8b5efe54

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.2.0-cp311-cp311-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.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5f9fb26170060212fe9ff52aa3a889ed1c2241d955a89186cc2570196e9cb98b
MD5 d20b1e3c48ccfaa1f81741dff0208906
BLAKE2b-256 7425271fa7117cec589b78607b500132da0ebb42eeaeb52513772f912b4779ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.2.0-cp311-cp311-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.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6ecae21ef1d67db6dad8e606fa5eb91b294fe37309699cc5236f9151364770a5
MD5 b5024719fbe0e21a9763d40e6af50e5b
BLAKE2b-256 2d6dcc61ad3932265a32d2384c0e80b77a149c993175ac3f2a921a4ba39510ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.2.0-cp310-cp310-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.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 923d575c2159e8d2396522b56433b4d9101e214a16b0e2e34a7b0d503f79ec7d
MD5 a5592ee6efb01174676113cbd7e4860f
BLAKE2b-256 f839dcfb293636aa17916df30e0a58653056712db1d8da63dd10337841106504

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.2.0-cp310-cp310-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.0-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ae0bc140bc8876149a1d9bd33cd624991a82607f39e6e7dc9021045333d0c65b
MD5 d64ea960485c9c3406b443e15c49779b
BLAKE2b-256 f99d986c1c3cb16cf5106b234caae69e25d73c49277f48df6d1538b62d0369f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.2.0-cp310-cp310-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.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 46f4f09fab2ebcf55f209ebf3a3a63fb5a807ebe9aaa39151cfc31bc83c986ca
MD5 694409bcdc7ca15053e61aafc7ed4d13
BLAKE2b-256 3f20508a1939896a1df1be85bc87b0b5a866afbb367196e4a544c2e7cb8af02d

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.2.0-cp39-cp39-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.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 625b00b9968b5e28868d94e291d760884930ac673276cff00c5b62415543403b
MD5 2611179c1a12c5e13f1cf6166702fa84
BLAKE2b-256 698346c3816a67ecc6a5f0644a0892ffebc868028f81ee3a057cca96063ed08a

See more details on using hashes here.

Provenance

The following attestation bundles were made for radish_rs-0.2.0-cp39-cp39-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.0-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for radish_rs-0.2.0-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3e6886f03e38e18245dad2999b1aa391d8857fc06a264904237e176676e74ba7
MD5 286cdf1c0889f03d27e1387ceeb983ac
BLAKE2b-256 a7642821f9196d249e30154c615b26dcb04b8828e73929cfd83f8dbf76ca4625

See more details on using hashes here.

Provenance

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