Skip to content
Snippets Groups Projects
downscale.sh 657 B
# activate conda environment
conda activate climax

# move to project repository
cd ~/git/climax

# wet day thresholds to test
# WET_DAY_THRESHOLDS=(0 0.5 1 2 3 5)
LAMBDA = (0 0.000001 0.00001 0.0001 0.001 0.01)

# 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

    # run downscaling
#   python climax/main/downscale.py
# done

for lambda in ${LAMBDA[@]}; do
    # change weight regularization in configuration
    sed -i "s/LAMBDA\s*=.*/LAMBDA=$lambda)/" ./climax/main/config.py

    # run downscaling
    python climax/main/downscale.py
done