1
1
# Documentation of aggregation and visualization of Qsim results
2
- path <- " C:/Users/mzamzo/Documents/impetus"
2
+
3
+ path <- " C:/Users/dwicke/Documents/work/IMPETUS/Work-packages/WP4_Demonstration_KWB/CS-Berlin/04_Modelling/OGewaesser"
4
+ # path <- "C:/Users/mzamzo/Documents/impetus"
3
5
4
6
# load and prepare qsim data
5
7
df_in1 <- qsimVis :: QSIM_prepare(
6
- qsim_output_file = file.path(path , " input/qsim_export" ,
7
- " S0 _Abwasseranteile_Alle_Stationen_Spandau.csv"
8
+ qsim_output_file = file.path(path , " Daten/SenUMVK/Daten_Masterplan_Wasser/Daten_Schumacher/Teilmodell_T4-SH_Spandau" ,
9
+ # "S0 _Abwasseranteile_Alle_Stationen_Spandau.csv"
10
+ # "S3.25_Abwasseranteile_Alle_Stationen_Spandau.csv"
11
+ " S3.50_Abwasseranteile_Alle_Stationen_Spandau.csv"
12
+ # qsim_output_file = file.path(path, "input/qsim_export",
8
13
), parameter_name = " KONSSY"
9
14
)
15
+
10
16
df_in2 <- qsimVis :: QSIM_prepare(
11
- qsim_output_file = file.path(path , " input/qsim_export" ,
17
+ # qsim_output_file = file.path(path, "input/qsim_export",
18
+ qsim_output_file = file.path(path , " Daten/SenUMVK/Daten_Masterplan_Wasser/Daten_Schumacher/Teilmodell_T1-SH_Mühlendamm" ,
12
19
" T1 S0_Abwasseranteile_Alle_Stationen_T1.csv"
13
- ), parameter_name = " KONSSY"
20
+ # "T1 S3.25_Abwasseranteile_Alle_Stationen_T1.csv"
21
+ # "T1 S3.50_Abwasseranteile_Alle_Stationen_T1.csv"
22
+ # "T1 S3.75_Abwasseranteile_Alle_Stationen_T1.csv"
23
+ ), parameter_name = " KONSSY"
14
24
)
25
+
15
26
df_in3 <- qsimVis :: QSIM_prepare(
16
- qsim_output_file = file.path(path , " input/qsim_export" ,
17
- " T3 S0_Abwasseranteile_Alle_Stationen_T3.csv"
27
+ qsim_output_file = file.path(path , " Daten/SenUMVK/Daten_Masterplan_Wasser/Daten_Schumacher/Teilmodell_T3-SH_Brandenburg" ,
28
+ # "T3 S0_Abwasseranteile_Alle_Stationen_T3.csv"
29
+ # "T3 S3.25_Abwasseranteile_Alle_Stationen_T3.csv"
30
+ # "T3 S3.50_Abwasseranteile_Alle_Stationen_T3.csv"
31
+ " T3 S3.75_Abwasseranteile_Alle_Stationen_T3.csv"
32
+ # qsim_output_file = file.path(path, "input/qsim_export",
18
33
), parameter_name = " KONSSY"
19
34
)
20
35
@@ -29,7 +44,8 @@ output <- list(
29
44
" def_hours" =
30
45
qsimVis :: deviating_hours(
31
46
dataFrame = df_pro ,
32
- thresholds = c(1 , 2 , 4 , 8 ,16 ),
47
+ thresholds = c(10 , 20 , 40 , 60 , 80 ),
48
+ # thresholds = c(1, 2, 4, 8, 16),
33
49
dev_type = " egt" ),
34
50
" adv_deviation" =
35
51
qsimVis :: adverse_deviation_from_reference(
@@ -38,6 +54,7 @@ output <- list(
38
54
worst = 100 ,
39
55
good_values = " low" ))
40
56
57
+ head(output $ def_hours )
41
58
42
59
# ,
43
60
# "crit_events" = qsimVis::critical_events(
@@ -60,8 +77,11 @@ output <- lapply(output, function(x){
60
77
})
61
78
head(output $ adv_deviation )
62
79
63
- writexl :: write_xlsx(x = output , path = file.path(path , " output " , " output_table.xlsx" ))
80
+ writexl :: write_xlsx(x = output , path = file.path(path , " Viewer_Skript " , " output_table.xlsx" ))
64
81
82
+ # qsimVis::save_as_excel(
83
+ # list_of_aggregated_data = output,
84
+ # path = file.path(path, "Viewer_Skript", "output_table.xlsx"))
65
85
66
86
67
87
0 commit comments