meteo2zarr
High-Performance NWP to Cloud-Native Zarr Converter for Meteorological and Climate Data
Convert Numerical Weather Prediction outputs (AROME, ALADIN, ARPEGE, ECMWF IFS, GFS in FA, GRIB, NetCDF) into cloud-optimized, sharded, multi-dimensional Zarr stores with sliding meteorological accumulations and distributed streaming writes.
Key Features
- Distributed and Lazy Streaming: Powered by Dask and ProcessPoolExecutor for parallel ingestion and chunked writing without out-of-memory errors.
- Meteorological Accumulation Engine: Automatic decumulation of raw model precipitation and sliding window calculations (1h, 3h, 6h, 12h, 24h).
- Derived Diagnostics: Computation of vector magnitude (wind speed), direction, and unit conversions (Kelvin to Celsius, Pa to hPa).
- Cloud and Web Visualization Optimized: Calibrated chunking hierarchy designed for TiTiler-Xarray, MapLibre, and ndpyramid.
- Dual Execution Profile: Runs smoothly on local developer laptops as well as HPC clusters (Slurm).
Installation
# Standard installation
pip install meteo2zarr
# With GRIB support (eccodes / cfgrib)
pip install meteo2zarr[grib]
# With FA support (epygram)
pip install meteo2zarr[fa]
# Complete installation (all formats + pyramids)
pip install meteo2zarr[all]
Quickstart
1. Command Line Interface (CLI)
# Convert a local model run
meteo2zarr convert \
--model arome \
--run 2026030100 \
--input /path/to/raw/files \
--output ./zarr_output \
--dask-workers 4 \
--chunk-time 6
2. Python API
from datetime import datetime
from meteo2zarr import NWPConverter
# Initialize converter
converter = NWPConverter(
output_dir="./zarr_output",
dask_workers=4,
chunk_time=6,
)
# Run conversion
success = converter.convert(
input_dir="/path/to/raw/files",
model="arome",
run_date=datetime(2026, 3, 1, 0, 0),
dt_hours=1.0,
)
Architecture
graph TD
A[Raw NWP Files<br/>FA / GRIB / NetCDF] --> B[meteo2zarr Ingestion and Schema Mapper]
B --> C[Meteorological Processing Engine<br/>• Precipitation Decumulation<br/>• Sliding Windows: 1h, 3h, 6h, 12h, 24h<br/>• Derived Wind Speed and Direction]
C --> D[Dask Distributed Streaming Chunking]
D --> E[Cloud-Native Zarr Stores / Multiscale Pyramids]
Testing
pytest tests/
Acknowledgments
Special thanks to Mr. KERROUMI from Météo Algérie (ONM) for his valuable support and contributions during the development of the initial version of this code.
License
Distributed under the Apache 2.0 License. See LICENSE for more information.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meteo2zarr-1.0.0.tar.gz.
File metadata
- Download URL: meteo2zarr-1.0.0.tar.gz
- Upload date:
- Size: 12.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b16de10cd7054c62dcfe6ec81e0fdb2591d872cf58e0ec4ad8f4daf6f135d7df
|
|
| MD5 |
87ef281900e7c26a0a49165f410bcee3
|
|
| BLAKE2b-256 |
eef95ed73090d2f9a09b8f40ebbf213d3e2b913bd24296ca82cbb0dd34e1d95c
|
Provenance
The following attestation bundles were made for meteo2zarr-1.0.0.tar.gz:
Publisher:
publish.yml on walidchikhi/meteo2zarr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meteo2zarr-1.0.0.tar.gz -
Subject digest:
b16de10cd7054c62dcfe6ec81e0fdb2591d872cf58e0ec4ad8f4daf6f135d7df - Sigstore transparency entry: 2519556252
- Sigstore integration time:
-
Permalink:
walidchikhi/meteo2zarr@c818748b41eb93c9ed9b4d8bc1b4d6b691868782 -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/walidchikhi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c818748b41eb93c9ed9b4d8bc1b4d6b691868782 -
Trigger Event:
release
-
Statement type:
File details
Details for the file meteo2zarr-1.0.0-py3-none-any.whl.
File metadata
- Download URL: meteo2zarr-1.0.0-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af9d57611d3d3417b21811e7087ab821e203d4d69fb3a779d013a9e8c58e928e
|
|
| MD5 |
47e321d8a4b540ec74ce7f3a4f1446f4
|
|
| BLAKE2b-256 |
0578f01f7a97b91eb0045e8f4791f945d497c671a8437503f841dff4efc4fd6e
|
Provenance
The following attestation bundles were made for meteo2zarr-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on walidchikhi/meteo2zarr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meteo2zarr-1.0.0-py3-none-any.whl -
Subject digest:
af9d57611d3d3417b21811e7087ab821e203d4d69fb3a779d013a9e8c58e928e - Sigstore transparency entry: 2519556306
- Sigstore integration time:
-
Permalink:
walidchikhi/meteo2zarr@c818748b41eb93c9ed9b4d8bc1b4d6b691868782 -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/walidchikhi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c818748b41eb93c9ed9b4d8bc1b4d6b691868782 -
Trigger Event:
release
-
Statement type: