diff --git a/Scripts/downscale.sh b/Scripts/downscale.sh index 903d642b6bfb4dc46402f858a29bac6fea4f0c00..54c44a88ee36a55b65f87f87846b38b25d3a1e59 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