Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.42 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.42 KB

Physics-constrained deep learning postprocessing of temperature and humidity

Workflow for the physics-constrained deep learning postprocessing of temperature and humidity (paper under review). This work investigates the effect of enforcing dependencies between variables by constraining the optimization of neural networks with thermodynamic state equations.

Pre-print

https://arxiv.org/abs/2212.04487

Colab example Open In Colab

A self-contained, minimal example of this work was presented by Tom Beucler in the "Physics-Guided Machine Learning" e-learning module of ECMWF's MOOC on Machine Learning in Weather and Climate.

Installation

If using conda, simply replace mamba with conda. We reccommend you set the two environment variables that indicate where the workflow environments and data will be located. By default, these will be located in a .snakemake/conda and data/ respectively.

mamba env create -f environment.yaml
mamba env config vars set SNAKEMAKE_CONDA_PREFIX=<path> SNAKEMAKE_DATA_DIR=<path>

Visualize the workflow:

snakemake all_results --dag | dot -Tpdf > dag.pdf
snakemake all_results --rulegraph | dot -Tpdf > rulegraph.pdf