Skip to main content

reki

GitHub Release PyPI CI License

reki is a Python library for finding, reading, and processing meteorological data. It decodes GRIB2 messages with ecCodes and converts selected fields to xarray datasets.

Features

  • Find data in local and mounted archives using path templates, and download files from URLs.
  • Select GRIB2 fields by parameter name, level, reference time, forecast lead, or encoded GRIB keys.
  • Read NetCDF, GrADS, and tabular data with format-specific readers.
  • Extract regions, sample points, and interpolate gridded data.

Data sources

kind Use case
file Read a local GRIB2 file at a known path.
local Find and read GRIB2 files in a mounted archive using a dataset ID and mount root.
cmadaas Query CMADaaS MUSIC using a dataset ID and a CedarKit YAML file with connection settings and credentials.

Installation

reki requires Python 3.11 or newer. Install a release from PyPI.

python -m pip install reki

To use the API shown below from a checkout, run python -m pip install . from the repository root.

Install reki[cmadaas] for CMADaaS MUSIC access or reki[lazy] for Dask-backed arrays in supported readers.

Quick start

Read 2 m air temperature from a local GRIB2 file with one matching field. For a public ECMWF IFS example, run reki-test-data download ecmwf_ifs and replace forecast.grib2 with the downloaded file path.

from reki import from_source

with from_source({"kind": "file", "path": "forecast.grib2"}) as source:
    temperature = source.sel(parameter="t2m").one().to_xarray()["t2m"]

print(temperature)

With the ECMWF IFS sample, the output is an xarray.DataArray named t2m with units set to K (kelvin).

Documentation

中文文档

Contributing

Report bugs or request features on GitHub Issues.

License

reki is licensed under the Apache License 2.0.

Metadata

Release files for reki 2026.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reki 2026.11.0
File Size Uploaded Provenance Actions
reki-2026.11.0.tar.gz 715.7 kB Without provenance Details for reki-2026.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reki 2026.11.0
File Interpreter ABI Platform Actions
reki-2026.11.0-py3-none-any.whl Python 3 none any Details for reki-2026.11.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / reki-2026.11.0.tar.gz

Download URL reki-2026.11.0.tar.gz
Size 715.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6e031d3b5f26d149a81f70045dc9b9360327cc95326e23f6d5232eb712bdf012
BLAKE2b-256 checksum
How to use checksums
fe24352240acafa3fa22c89b630aab58303b185c455091596e9c45cfb2ca45de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / reki-2026.11.0-py3-none-any.whl

Download URL reki-2026.11.0-py3-none-any.whl
Size 437.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0eb49dd8ff909e1a7e697b00e7137f654f6b00ea2336025f729c11322d7d81e2
BLAKE2b-256 checksum
How to use checksums
dcd716c5eebba5655a2e5e6a0b6a4ecf48734081643b6f98dca4a3657dcdc3fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for reki 2026.11.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page