Skip to content

Commit f60bd11

Browse files
committed
all input files from Masterplan Wasser added and thresholds adapted for displaying share of treated wastewater
1 parent 89ee4b0 commit f60bd11

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

inst/extdata/scripts/impetus/readData_impetus.R

+29-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
# 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"
35

46
# load and prepare qsim data
57
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",
813
), parameter_name = "KONSSY"
914
)
15+
1016
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",
1219
"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"
1424
)
25+
1526
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",
1833
), parameter_name = "KONSSY"
1934
)
2035

@@ -29,7 +44,8 @@ output <- list(
2944
"def_hours" =
3045
qsimVis::deviating_hours(
3146
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),
3349
dev_type = "egt"),
3450
"adv_deviation" =
3551
qsimVis::adverse_deviation_from_reference(
@@ -38,6 +54,7 @@ output <- list(
3854
worst = 100,
3955
good_values = "low"))
4056

57+
head(output$def_hours)
4158

4259
# ,
4360
# "crit_events" = qsimVis::critical_events(
@@ -60,8 +77,11 @@ output <- lapply(output, function(x){
6077
})
6178
head(output$adv_deviation)
6279

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"))
6481

82+
#qsimVis::save_as_excel(
83+
# list_of_aggregated_data = output,
84+
# path = file.path(path, "Viewer_Skript", "output_table.xlsx"))
6585

6686

6787

0 commit comments

Comments
 (0)