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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meteo2zarr-1.0.0.tar.gz (12.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meteo2zarr-1.0.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

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

Hashes for meteo2zarr-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b16de10cd7054c62dcfe6ec81e0fdb2591d872cf58e0ec4ad8f4daf6f135d7df
MD5 87ef281900e7c26a0a49165f410bcee3
BLAKE2b-256 eef95ed73090d2f9a09b8f40ebbf213d3e2b913bd24296ca82cbb0dd34e1d95c

See more details on using hashes here.

Provenance

The following attestation bundles were made for meteo2zarr-1.0.0.tar.gz:

Publisher: publish.yml on walidchikhi/meteo2zarr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for meteo2zarr-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af9d57611d3d3417b21811e7087ab821e203d4d69fb3a779d013a9e8c58e928e
MD5 47e321d8a4b540ec74ce7f3a4f1446f4
BLAKE2b-256 0578f01f7a97b91eb0045e8f4791f945d497c671a8437503f841dff4efc4fd6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for meteo2zarr-1.0.0-py3-none-any.whl:

Publisher: publish.yml on walidchikhi/meteo2zarr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2.0.0

2 files

1.0.1

2 files

This release

1.0.0 This release

2 files

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