Skip to content

Commit

Permalink
modfied examples
Browse files Browse the repository at this point in the history
  • Loading branch information
schwemro committed Oct 11, 2023
1 parent e263673 commit 7d8a319
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
10 changes: 5 additions & 5 deletions examples/plot_scale/boadkh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ job scripts contains `_gpu` computations run on GPU.
The following crop combinations are rotated:
- Winter wheat and clover
- Winter wheat and corn
- Winter wheat and winter rape
- Winter wheat, clover and corn
- Winter wheat, sugar beet and corn
- Winter wheat, winter grain pea and winter rape
- Summer wheat and winter wheat
- Summer wheat, clover and winter wheat
- Summer wheat, winter wheat and corn
- Winter wheat, clover and corn
- Summer wheat, winter wheat and winter rape
- Winter wheat and winter rape
- Summer wheat, winter wheat and corn
- Winter wheat, winter grain pea and winter rape
- Winter wheat, sugar beet and corn

The name of the folder contains the considered crop combinations. Each folder contains a file that describes the crop rotation in `crop_rotation.csv`.

Expand Down
9 changes: 9 additions & 0 deletions examples/plot_scale/boadkh/svat_crop/submit_jobs_muellheim.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

cd ~/roger/examples/plot_scale/boadkh/svat_crop

FILES="$PWD/svat_crop_muellheim_*_slurm.sh"
for f in $FILES
do
sbatch --partition=single $f
done
2 changes: 1 addition & 1 deletion examples/plot_scale/boadkh/svat_crop/svat_crop.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from roger.cli.roger_run_base import roger_base_cli

@click.option("--location", type=click.Choice(["singen", "azenweiler", "unterraderach", "muellheim", "freiburg", "ihringen", "altheim", "kirchen", "maehringen", "heidelsheim", "elsenz", "zaberfeld", "kupferzell", "stachenhausen", "oehringen"]
), default="freiburg")
), default="ihringen")
@click.option("--crop-rotation-scenario", type=click.Choice(["summer-wheat_clover_winter-wheat", "summer-wheat_winter-wheat",
"summer-wheat_winter-wheat_corn",
"summer-wheat_winter-wheat_winter-rape", "winter-wheat_clover",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def main(tmp_dir):
ax[i, j].set_xlabel("")
ax[i, j].set_ylabel("")
if metric_var in ["KGE_q_ss"]:
ax[i, j].set_ylim((0.0, 0.3))
ax[i, j].set_ylim((0.1, 0.5))
elif metric_var in ["r_theta"]:
ax[i, j].set_ylim((0.6, 0.9))
elif metric_var in ["E_multi"]:
ax[i, j].set_ylim((0.5, 0.8))
ax[i, j].set_ylim((0.4, 0.6))

# best parameter set for individual evaluation metric at specific storage conditions
df_params_metrics_sc1 = df_params_metrics.copy()
Expand Down Expand Up @@ -89,11 +89,11 @@ def main(tmp_dir):
ax[i, j].set_xlabel("")
ax[i, j].set_ylabel("")
if metric_var in ["KGE_q_ss"]:
ax[i, j].set_ylim((0.0, 0.3))
ax[i, j].set_ylim((0.1, 0.5))
elif metric_var in ["r_theta"]:
ax[i, j].set_ylim((0.6, 0.9))
elif metric_var in ["E_multi"]:
ax[i, j].set_ylim((0.5, 0.8))
elif metric_var in ["E_multi"]:
ax[i, j].set_ylim((0.4, 0.6))

# best parameter set for individual evaluation metric at specific storage conditions
df_params_metrics_sc1 = df_params_metrics.copy()
Expand Down
12 changes: 6 additions & 6 deletions examples/plot_scale/reckenholz/svat_monte_carlo/dotty_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def main(tmp_dir):
ax[i, j].set_xlabel("")
ax[i, j].set_ylabel("")
if metric_var in ["KGE_q_ss"]:
ax[i, j].set_ylim((0.0, 0.3))
ax[i, j].set_ylim((0.1, 0.5))
elif metric_var in ["r_theta"]:
ax[i, j].set_ylim((0.5, 1.0))
elif metric_var in ["E_multi"]:
ax[i, j].set_ylim((0.5, 0.8))
elif metric_var in ["E_multi"]:
ax[i, j].set_ylim((0.4, 0.6))

# best parameter set for individual evaluation metric at specific storage conditions
df_params_metrics_sc1 = df_params_metrics.copy()
Expand Down Expand Up @@ -89,11 +89,11 @@ def main(tmp_dir):
ax[i, j].set_xlabel("")
ax[i, j].set_ylabel("")
if metric_var in ["KGE_q_ss"]:
ax[i, j].set_ylim((0.0, 0.3))
ax[i, j].set_ylim((0.1, 0.5))
elif metric_var in ["r_theta"]:
ax[i, j].set_ylim((0.5, 1.0))
elif metric_var in ["E_multi"]:
ax[i, j].set_ylim((0.5, 0.8))
elif metric_var in ["E_multi"]:
ax[i, j].set_ylim((0.4, 0.6))

# best parameter set for individual evaluation metric at specific storage conditions
df_params_metrics_sc1 = df_params_metrics.copy()
Expand Down

0 comments on commit 7d8a319

Please sign in to comment.