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-2.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-2.0.0-py3-none-any.whl (53.8 kB view details)

Uploaded Python 3

File details

Details for the file meteo2zarr-2.0.0.tar.gz.

File metadata

  • Download URL: meteo2zarr-2.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-2.0.0.tar.gz
Algorithm Hash digest
SHA256 16b1e079e83d802fe93f8a11686e263084034fac7805d864eabe4b79d74c624f
MD5 fd5d287afb82b84ce58d6eb74d08912a
BLAKE2b-256 e6d06fd760e7774ab899ba053de23fdb1e4bdf76f8cd279ddb8e95e889e96c19

See more details on using hashes here.

Provenance

The following attestation bundles were made for meteo2zarr-2.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-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: meteo2zarr-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 53.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for meteo2zarr-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35e23dd463d2e355cae3c212849e5bbc3d85c50f0e2cc30c24fb770346a9d2e8
MD5 42a1df6085a02f0d20da54a20274830a
BLAKE2b-256 153e1251566d889388b313080b1f3adad5e59e4efc1786d3ead102045dde3994

See more details on using hashes here.

Provenance

The following attestation bundles were made for meteo2zarr-2.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

This release

2.0.0 This release

2 files

1.0.1

2 files

1.0.0

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