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.
https://arxiv.org/abs/2212.04487
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.
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>
snakemake all_results --dag | dot -Tpdf > dag.pdf
snakemake all_results --rulegraph | dot -Tpdf > rulegraph.pdf