-
Notifications
You must be signed in to change notification settings - Fork 3
/
ccr_run.sh
executable file
·49 lines (34 loc) · 1.38 KB
/
ccr_run.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#gsflow_exe=$HOME"/opt/GSFLOW_1.2.1\ Linux/bin"
gsflow_exe=$HOME"/opt/GSFLOW-1.2.0/bin"
proj_name="SantaRosaIsland"
local_dir=${PWD}
settings_ini="$local_dir/settings.ini"
gsflow_dir="$local_dir/GSFLOW"
control_dir="$gsflow_dir/control/"
PRMSinput_dir="$gsflow_dir/inputs/PRMS/"
MODFLOWinput_dir="$gsflow_dir/inputs/MODFLOW_NWT/"
PRMSoutput_dir="$gsflow_dir/outputs/PRMS/"
DEM="stros_srtm_3arc_utm"
echo "[settings]" > "$settings_ini"
echo "proj_name=$proj_name" >> "$settings_ini"
echo "local_dir=$local_dir" >> "$settings_ini"
echo "gsflow_exe=$gsflow_exe" >> "$settings_ini"
echo "control_dir=$control_dir" >> "$settings_ini"
echo "PRMSinput_dir=$PRMSinput_dir" >> "$settings_ini"
echo "MODFLOWinput_dir=$MODFLOWinput_dir" >> "$settings_ini"
echo "PRMSoutput_dir=$PRMSoutput_dir" >> "$settings_ini"
echo "DEM=$DEM" >> "$settings_ini"
mkdir -p "$control_dir" "$PRMSinput_dir" "$MODFLOWinput_dir" "$PRMSoutput_dir"
unzip strosa_data.zip
mkdir -p data/GIS
cp -R strosa_data/GIS/* data/GIS/
cp strosa_data/dem/* data/GIS
cp strosa_data/climate/* "$PRMSinput_dir"
touch python_scripts/MODFLOW_scripts/__init__.py
python2.7 python_scripts/settings.py
##python2.7 process_weatherdata.py
python2.7 python_scripts/GSFLOW_print_controlfile.py
python2.7 python_scripts/GSFLOW_print_PRMSparamfile.py
python2.7 python_scripts/print_MODFLOW_inputs_res_NWT.py
./GSFLOW/control/SantaRosaIsland_GSFLOW.sh