-
Notifications
You must be signed in to change notification settings - Fork 6
/
swatplus_aw.sh
32 lines (24 loc) · 1.32 KB
/
swatplus_aw.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# set the directory of QGIS
# export QGIS_Dir=C:\Program Files\QGIS 3.10
# set ERRORLEVEL=0
# set variables for project initialisation
export python_script_prepare_qswat=$HOME/.SWAT/SWATPlus/Workflow/main_stages/prepare_project.py
export python_script_make_namelist=$HOME/.SWAT/SWATPlus/Workflow/main_stages/generate_namelist.py
export python_script_run_qswat=$HOME/.SWAT/SWATPlus/Workflow/main_stages/run_qswat.py
export python_script_run_editor=$HOME/.SWAT/SWATPlus/Workflow/main_stages/run_editor.py
export python_script_run_calibration=$HOME/.SWAT/SWATPlus/Workflow/main_stages/run_calibration.py
export python_script_make_figures=$HOME/.SWAT/SWATPlus/Workflow/main_stages/run_make_figures.py
export python_script_clean_up=$HOME/.SWAT/SWATPlus/Workflow/main_stages/run_clean_up.py
export BASE_DIR=$PWD
export swatplus_wf_dir=$HOME/.SWAT/SWATPlus/Workflow/
# # add default plugins and model directory to python path
export PYTHONPATH=$BASE_DIR:$PYTHONPATH
# export PATH=%PATH%
# start runing the workflow using PyQGIS
python3 $python_script_prepare_qswat $BASE_DIR
python3 $python_script_make_namelist $BASE_DIR
python3 $python_script_run_qswat $BASE_DIR
python3 $python_script_run_editor $BASE_DIR
python3 $python_script_run_calibration $BASE_DIR
python3 $python_script_make_figures $BASE_DIR
python3 $python_script_clean_up $BASE_DIR