Obtaining high-resolution data for convection-permitting climate models through deep learning
$\textcolor{Blue}{\textsf{ Table of contents }}$
$\textcolor{Blue}{\textsf{ Creating the environment }}$
On ECMWF Atos
module load python3/new
mkdir -p $PERM/venvs
cd $PERM/venvs
python3 -m venv --system-site-packages climulator
module load cuda
source $PERM/venvs/climulator/bin/activate
pip install mlxtend
pip install keras
#module load python3/3.10.10-01
#cd $PERM/venvs
#python3 -m venv --system-site-packages climulator2
On LUMI
#module load cray-python/3.11.7
module load cray-python/3.10.10
mkdir -p $HOME/venvs
cd $HOME/venvs
python3 -m venv --system-site-packages Climulator
source $HOME/venvs/Climulator/bin/activate
pip install mlxtend
pip install keras==2.12.0 #tensorflow needs to be 2.12 to be consistent with keras
On ALVIS/NAISS
mkdir $HOME/venvs
cd $HOME/venvs
module load virtualenv/20.23.1-GCCcore-12.3.0
virtualenv --system-site-packages climulator
pip install mlxtend
pip install "numpy<2" #Solution for error: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.4.2 as it may crash.
On local HPC (e.g., SMHI NSC Freja)
-
Install Miniconda
-
Activate conda in Miniconda first using
conda activateor
source ~/miniconda3/bin/activate -
Run the following command:
conda env create -f environment.yml -
Make sure that you see “climulator” in the output when you ask for a list of all available environments:
conda env list -
Activating the 'climulator' environment:
conda activate climulator
$\textcolor{Blue}{\textsf{ How to run }}$
-
Create a new folder to run experiments To not pollute the git repository, we suggest to create a new folder and copy the configuration file to the new folder. (example on ATOS)
mkdir -p $HOME/<name-of-the-new-folder> cd $HOME/<name-of-the-new-folder> mkdir config mkdir -p run/ATOS cp <path-to-climulator>/config/config_main_SG_TestDomain_tas_atos.ini config/ cp <path-to-climulator>/run/ATOS/run_main_SG_TD_tas_atos.sh run/ATOS/ -
Configure settings in config_main.ini and run.sh
to come ...
-
Run
cd $HOME/<name-of-the-new-folder>/run/ATOS sbatch run_main_SG_TD_tas_atos.sh