Read-only mirror of https://github.com/MeteoSwiss/mlpp-features — MeteoSwiss. Issues & pull requests at the source.
  • Python 90.2%
  • Jupyter Notebook 9.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonas Bhend 75f2cdbdc8
Add relative_fraction computation (#40)
* add relative_fraction computation

* fix typo and deprecation warning

* update lock file

* Fix syntax

* Fix failing test

* Formatting

* formatting

* Refactor logic to compute relative fractions as an accessors

* Add 'ens' suffix

---------

Co-authored-by: bhj <jonas.bhend@meteoswiss.ch>
Co-authored-by: Daniele Nerini <daniele.nerini@meteoswiss.ch>
2025-03-31 15:49:02 +02:00
.github/workflows Update actions 2024-02-23 09:53:28 +01:00
mlpp_features Add relative_fraction computation (#40) 2025-03-31 15:49:02 +02:00
notebooks Add notebook about forecast regions 2024-09-23 14:38:11 +02:00
tests Small fix, remove debug 2024-10-21 11:48:28 +02:00
.gitignore Ignore data folder 2024-08-12 15:47:43 +02:00
LICENSE Initial commit 2022-01-17 15:32:59 +01:00
poetry.lock Add relative_fraction computation (#40) 2025-03-31 15:49:02 +02:00
pyproject.toml Add relative_fraction computation (#40) 2025-03-31 15:49:02 +02:00
README.md Update README.md 2024-07-30 11:59:51 +02:00

MLPP Features

.github/workflows/run-tests.yml pypi

Define, track, share, and discover features for ML-based postprocessing of weather forecasts.

⚠️ The code in this repository is currently work-in-progress and not recommended for production use. ⚠️

Installation

Clone the mlpp-features repository

git clone git@github.com:MeteoSwiss/mlpp-features.git
cd mlpp-features

Install the project via

pip install -e .

Getting started

The repo is organised mainly in three parts.
Features are defined in nwp.py, obs.py, terrain.py and time.py depending on their nature.
Some features are not natively produced by NWP models but derived from other variables. Relevant function are defined in the calc module. Geographical calculations are handled in the geo_calculations.py module.
Finally, accessors.py and selectors.py are used to define utility functions.