From 2182b93c80f2df3fe97ce9cb87c7382ec4d1469a Mon Sep 17 00:00:00 2001 From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu> Date: Mon, 27 Sep 2021 17:05:35 +0200 Subject: [PATCH] Added iteration over thresholds. --- Scripts/downscale.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Scripts/downscale.sh b/Scripts/downscale.sh index 903d642..54c44a8 100644 --- a/Scripts/downscale.sh +++ b/Scripts/downscale.sh @@ -4,8 +4,16 @@ conda activate climax # move to project repository cd ~/git/climax -# model training -python climax/main/downscale_train.py +# wet day thresholds to test +WET_DAY_THRESHOLDS=(0, 0.5, 1, 2, 3, 5) -# model inference -python climax/main/downscale_infer.py +for w in ${WET_DAY_THRESHOLDS[@]}; do + # change wet day threshold in configuration + sed -i "s/min_amount\s*=.*/min_amount=$w)/" ./climax/main/config.py + + # model training + python climax/main/downscale_train.py + + # model inference + python climax/main/downscale_infer.py +done -- GitLab