Skip to main content

meteo2zarr

High-Performance NWP to Cloud-Native Zarr Converter for Meteorological and Climate Data

Python 3.10+ License: Apache 2.0 Code style: ruff Tests

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.

Metadata

Release files for meteo2zarr 2.0.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 meteo2zarr 2.0.0
File Size Uploaded Provenance Actions
meteo2zarr-2.0.0.tar.gz 12.1 MB With provenance Details for meteo2zarr-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.2 MB

Release files / meteo2zarr-2.0.0.tar.gz

Download URL meteo2zarr-2.0.0.tar.gz
Size 12.1 MB
Tags Source
SHA-256 checksum
How to use checksums
16b1e079e83d802fe93f8a11686e263084034fac7805d864eabe4b79d74c624f
BLAKE2b-256 checksum
How to use checksums
e6d06fd760e7774ab899ba053de23fdb1e4bdf76f8cd279ddb8e95e889e96c19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 28, 2026.

Transparency log

Release files / meteo2zarr-2.0.0-py3-none-any.whl

Download URL meteo2zarr-2.0.0-py3-none-any.whl
Size 53.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35e23dd463d2e355cae3c212849e5bbc3d85c50f0e2cc30c24fb770346a9d2e8
BLAKE2b-256 checksum
How to use checksums
153e1251566d889388b313080b1f3adad5e59e4efc1786d3ead102045dde3994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 28, 2026.

Transparency log

Security for meteo2zarr 2.0.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for meteo2zarr-2.0.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 Aug 28, 2026.

Transparency log

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