Read-only mirror of https://github.com/MeteoSwiss/meteodata-lab — MeteoSwiss. Issues & pull requests at the source.
  • Python 86%
  • NewLisp 13.9%
  • Shell 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Kanesan c9be13a79a
Update earthkit 1.0 (#141)
## Purpose

Update earthkit-data to version 1.0

## Code changes:

- Field metadata attribute is renamed to `message_b64` and is now a GRIB
message without values encoded in base64
- Added optional attribute `UuidOfHGrid`
- `metadata` functions changed signature to accept either
`earthkit.data.Field` instances or the base64 encoded GRIB message
- Added `serialise_field` and `deserialise_field` functions to the
`metadata` module

## Requirements changes:

- Earthkit-data 1.0 is required
- eccodes and eccodes cosmo definitions updated to version 2.47

---------

Co-authored-by: Nina Burgdorfer <83002751+ninaburg@users.noreply.github.com>
2026-07-27 16:49:44 +02:00
.github Manage doc requirements in pyproject.toml (#138) 2026-05-12 17:35:13 +02:00
docs Manage doc requirements in pyproject.toml (#138) 2026-05-12 17:35:13 +02:00
jenkins Run tests on uenv (#135) 2026-05-07 14:52:49 +02:00
scripts Run tests on uenv (#135) 2026-05-07 14:52:49 +02:00
spack-env Use eccodes cosmo resources python (#67) 2025-03-24 11:55:08 +01:00
src/meteodatalab Update earthkit 1.0 (#141) 2026-07-27 16:49:44 +02:00
tests/test_meteodatalab Update earthkit 1.0 (#141) 2026-07-27 16:49:44 +02:00
.gitignore Update FDB, eccodes and definitions (#32) 2024-07-24 10:49:09 +02:00
.pre-commit-config.yaml Manage venv using poetry (#22) 2024-07-03 11:34:33 +02:00
HISTORY.md Update earthkit 1.0 (#141) 2026-07-27 16:49:44 +02:00
LICENSE this is everything 2023-04-21 16:48:46 +02:00
MANIFEST.in this is everything 2023-04-21 16:48:46 +02:00
poetry.lock Update earthkit 1.0 (#141) 2026-07-27 16:49:44 +02:00
poetry.toml Update metadata in vertical interpolation operators (#27) 2024-07-24 10:48:12 +02:00
pyproject.toml Update earthkit 1.0 (#141) 2026-07-27 16:49:44 +02:00
README.md Update sphinx docs (#89) 2025-05-15 10:05:55 +02:00

meteodata-lab

Animated logo

PyPI version Latest Release Licence

InstallationDocumentation

WARNING:

This project is in BETA and under active development. Interfaces and functionality are subject to change.

Meteodata-lab is a NumPy/Xarray-based Python library for processing and analyzing gridded meteorological data. It supports GRIB (read/write) and is tailored to common workflows that require data interpolation, regridding to custom grids (e.g., Swiss grid or rotated lat/lon), and the computation of advanced meteorological fields. One of the key features of meteodata-lab is its use of operators that ensure the integrity of GRIB metadata is maintained throughout processing, allowing for consistent writing back to GRIB format.

Installation

For Users

To install the latest release from PyPI:

pip install meteodata-lab

Optional Extras

To install optional extras:

pip install "meteodata-lab[polytope,regrid]"

Note: The fdb extra is currently disabled because its dependency pyfdb is not available on PyPI. As an alternative the development setup can be used.

For Contributors

To set up the project for local development (e.g. for contributing code or testing changes), follow these steps:

  1. If you don't have write access, first fork the repository on GitHub, then clone your fork:
    git clone git@github.com:your-username/meteodata-lab.git
    
    If you do have write access, you can clone the main repository directly:
    git clone git@github.com:MeteoSwiss/meteodata-lab.git
    
  2. Navigate to the project directory and run the setup script:
    cd meteodata-lab
    ./scripts/setup_poetry.sh
    
    This will install Poetry (if not already available), set up the virtual environment, and install all dependencies with extras.

You can find more information about contributing to meteodata-lab at our Contributing page.

Documentation

Learn more about meteodata-lab in its official documentation at meteoswiss.github.io/meteodata-lab/.

Try out interactive Juypter notebooks