Read-only mirror of https://github.com/MeteoSwiss/rad4alp_zarr_database — MeteoSwiss. Issues & pull requests at the source.
  • Jupyter Notebook 96.6%
  • Python 3.2%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-09-10 15:01:37 +02:00
config ADD: config file for 2.5 min QPE db 2025-09-10 15:01:37 +02:00
examples_extraction first commit 2025-09-10 12:14:28 +02:00
geodata first commit 2025-09-10 12:14:28 +02:00
postproc first commit 2025-09-10 12:14:28 +02:00
populate_zarr_db.py first commit 2025-09-10 12:14:28 +02:00
README.md first commit 2025-09-10 12:14:28 +02:00
requirements.txt first commit 2025-09-10 12:14:28 +02:00
run.sbatch first commit 2025-09-10 12:14:28 +02:00
zarr-msrad-db.code-workspace first commit 2025-09-10 12:14:28 +02:00

MSRAD-ZARR

A Python tool to process MeteoSwiss radar products (ODIM HDF5 and Metranet, in ZIP archives) into a consolidated Zarr archive for efficient analysis with xarray.


Features

  • Reads daily radar products (ZIP/HDF5/Metranet).
  • Converts to xarray.Dataset with proper coordinates and metadata.
  • Aligns products on a common grid and time reference.
  • Adds missing variables as NaNs for consistency.
  • Writes results into a chunked Zarr store (appendable by time).
  • Parallel processing with configurable workers.

Usage

python radar2zarr.py \
    --cfgpath config.yaml \
    --starttime 20230101 \
    --endtime 20230105

Folder structure

  • populate_zarr_db.py: main script
  • run.sbatch: example SLURM job to populate database
  • config: examples of configuration files
  • postproc: set of scripts to postprocess the database (concat zarrs, rechunking, etc)
  • examples_extraction: set of scripts to perform operations on the zarr (watershed extraction for example)
  • geodata: contains geojson files of watersheds