This repository has been archived by the owner on Jan 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
executable file
·88 lines (59 loc) · 2 KB
/
main.py
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/python
## \mainpage
# Documentation of Smoderp, distributed event-based model for surface and subsurface runoff and erosion\n
# team members Petr Kavka, Karel Vrána and Jakum Jeřábek \n
# model was bild in cooperation with eng. students (Jan Zajíček, Nikola Němcová, Tomáš Edlman, Martin Neumann)
# \n
# The computational options are as follows:
# - Type of flow
# - surface
# - subsurface
# - surface + subsurface
# - Flow direction algorithm
# - D8 (default)
# - multi-flow direction
# - Erosion
# - none
# - sheet erosion
# - sheet erosion + rill erosion
# - Stream
# - yes
# - no
## @package main resolves some input variables and start the computing
#
# The computing itself is performed in main_src.runoff
import sys
import os
from main_src.tools.tools import logical_argv
from main_src.tools.tools import get_argv
import main_src.constants as constants
'''
onlyshallowsurface
shallowandrillsurface
diffuseshallowsurface
shallowrillstreamsurface
surfaceandsubsurfacestreamflow
'''
print "--------------------- INPUT PARAMETERS ---------------------"
for item in sys.argv:
print item
print "--------------------- ---------------- ---------------------"; print
if __name__ == "__main__":
logical_argv(constants.PARAMETER_ARCGIS)
logical_argv(constants.PARAMETER_EXTRA_OUTPUT)
logical_argv(constants.PARAMETER_MFDA)
#sys.argv.append(sys.path[0]+os.sep+'indata/dp_hodnebodu_hodnemaletau.save')
#sys.argv.append(sys.path[0]+os.sep+'indata/dp_hodne_bodu_tok.save')
#sys.argv.append(sys.path[0]+os.sep+'DS_plochamalyNx.save')
sys.argv.append(sys.path[0]+os.sep+'byk.save')
# full - full computation
# dpre - data_preparation
# roff - runoff
#sys.argv.append('roff')
#sys.argv.append('dpre')
sys.argv.append('full')
sys.argv.append('true'); logical_argv(constants.PARAMETER_DEBUG_PRT)
#jj tady se nastavuje max_delta_t
#sys.argv.append(1.0)
sys.argv.append(sys.path[0]+os.sep+'prt_times.in')
import main_src.runoff