mrrpropy
MRR PRO code for processing and analysis.
Scientific references
The retained RaProMPro processing implementation used for MRR-PRO data is associated with:
- Garcia-Benadi A, Bech J, Gonzalez S, Udina M, Codina B. A New Methodology to Characterise the Radar Bright Band Using Doppler Spectral Moments from Vertically Pointing Radar Observations. Remote Sensing. 2021;13(21):4323. https://doi.org/10.3390/rs13214323
The corresponding original code repository is:
For MRR-2 data, a related implementation is distributed separately as RaProM.py:
- Garcia-Benadi A, Bech J, Gonzalez S, Udina M, Codina B, Georgis JF. Precipitation Type Classification of Micro Rain Radar Data Using an Improved Doppler Spectral Processing Methodology. Remote Sensing. 2020;12(24):4113. https://doi.org/10.3390/rs12244113
Repository workflow
This repository keeps the scientific processing code intact while standardizing the developer workflow around it.
- Install the project in editable mode with
uv sync --group devorpip install -e .. - Import the package as
mrrpropy. - Use the optional CLI entry point as
mrrpropy version. - Keep scientific algorithm changes confined to the processing modules and treat workflow, packaging, tests, and CI as separate concerns.
Rain-process trends
The microphysical rain-process workflow now defaults to a non-parametric vertical trend characterization:
- Kendall's tau describes the direction and consistency of monotonic change in a layer.
- Theil-Sen slope describes the robust magnitude of that change.
- Downstream RGB and classification consume canonical
trend_*variables instead of method-specific names, so the trend method can be swapped without changing the rest of the pipeline. - OLS trend fitting remains available only as a legacy or diagnostic comparison path.
Velocity sign convention
Public mrrpropy outputs use Doppler/fall velocity with negative values indicating
downward hydrometeor motion. In RaProMPro products this applies to W and to the
speed coordinate of spe_3D; spectral plotting and rain-process spectral
features use the same negative-downward convention. The retained RaProMPro
algorithm keeps its original positive-downward convention internally, and the sign
is converted only at the public output and plotting/feature boundary.
Development
Typical local commands:
uv sync --group dev
uv run python -c "import mrrpropy"
uv run pytest -m "not slow"
uv run pytest -m slow
uv run mypy
uv run black --check mrrpropy/cli tests
uv run pre-commit install
uv run python scripts/benchmark_raprompro.py --quick --repeats 1
Production
Before using the package in production, follow the release checklist in
PRODUCTION.md.
Releasing
To build and publish the package, follow RELEASING.md. The repository includes
GitHub Actions workflows for release validation and Trusted Publishing to PyPI.
Tests
The test suite is organized into:
- fast checks for import and basic data access,
- integration checks for end-to-end workflow behavior,
- slow plotting regressions that write figures under
tests/figures/, - generated NetCDF and other non-figure test outputs under
tests/generated/.
Bundled NetCDF files under tests/data/ should stay minimal. The repository keeps
only the small RAW fixture required for exercising the workflow, while generated
RaProMPro products should go to ignored output paths under tests/data/PRODUCTS/
or other configured generated directories.
Benchmarking
For quick performance checks of the canonical processing path, use the bundled 10-minute RAW subset:
uv run python scripts/benchmark_raprompro.py --quick --repeats 1
The benchmark is intentionally aimed at the small bundled RAW fixture so the repo does not need to carry large reproducible products.
Documentation
The repository includes a static documentation site for GitHub Pages.
- Build locally with
python scripts/build_docs.pyafter installing.[docs]. - Preview locally with
python -m http.server 8000 --directory siteafter the build. - The landing pages live under
docs/. - The API reference is generated with
pdocfrom package docstrings and signatures.
Metadata
Release files for mrrpropy 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mrrpropy-0.3.0.tar.gz | 11.7 MB | With provenance | Details for mrrpropy-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mrrpropy-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for mrrpropy-0.3.0-py3-none-any.whl |
Total release size: 11.9 MB
Release files / mrrpropy-0.3.0.tar.gz
| Download URL | mrrpropy-0.3.0.tar.gz |
|---|---|
| Size | 11.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88530030a4342acdb3bec9cc1c85cb1a66d7403baee64a19458b428804ad5512
|
|
BLAKE2b-256 checksum How to use checksums |
c4ab35eced556c091e8cbf50c3c85666b05ccd9fcfa98c5e41a3305769663038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logRelease files / mrrpropy-0.3.0-py3-none-any.whl
| Download URL | mrrpropy-0.3.0-py3-none-any.whl |
|---|---|
| Size | 190.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9a2da6d8e78b700e90ebf31fe23830f3fb7572c1ef6143b09d9fa425e1ea5a1
|
|
BLAKE2b-256 checksum How to use checksums |
f0f9d6ab3908209cebff2096c386b33a834bc6c230161d264110dbd4d47f1378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logSecurity for mrrpropy 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mrrpropy-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.