@@ -9,7 +9,7 @@ project_path <-
99# data_path <- "Work-packages/WP4_Demonstration_KWB/CS-Berlin/04_Modelling/OGewaesser/BerlinWaterModel/Ergebnisse"
1010# file_name <- "qsimVis_input_days_test_250905.csv"
1111data_path <- " kwb.BerlinWaterModel"
12- file_name <- " qsimVis_input_days_2002-2022_Valsartansäure_Ozonung_alle_KW .csv"
12+ file_name <- " qsimVis_input_days_2002-2022_Valsartansäure_Ozonung_SCH .csv"
1313
1414# find out about column names --------------------------------------------------
1515colNames <- read.csv(
@@ -20,7 +20,7 @@ print(colNames)
2020# load and prepare qsim data
2121df_in <- qsimVis :: QSIM_prepare(
2222 qsim_output_file = file.path(project_path , data_path , file_name ),
23- parameter_name = " tracer.wwtp " , # "Valsartan.mg.m3" "tracer.wwtp", "tracer.rain"
23+ parameter_name = " Valsartan.mg.m3 " , # "Valsartan.mg.m3" "tracer.wwtp", "tracer.rain"
2424 date_column_name = " Datum" ,
2525 id_column_name = " GewaesserId" ,
2626 km_column_name = " Km" ,
@@ -67,14 +67,19 @@ output <- list(
6767
6868output_table <-
6969 # "adv_deviation"
70- # "stats"
71- " def_hours"
70+ " stats"
71+ # "def_hours"
7272
73+ if (FALSE ) {
7374head(output $ adv_deviation )
7475head(output $ def_hours )
7576head(output $ stats )
7677head(output $ flow_mean )
77- # es gibt keinen CVK
78+ }
79+
80+ # #########################################################################################################
81+ # Configuration of maps ##################################################################################
82+ # #########################################################################################################
7883
7984# Zeitdauer Abwasseranteil > x%
8085if (output_table == " def_hours" ){
@@ -112,7 +117,7 @@ if(output_table == "def_hours"){
112117# Valsartansäure
113118if (output_table == " stats" ){
114119 output_column <- " mean"
115- classBreaks <- c(0 , 0.25 , 0.5 , 1 , 2.5 , 4 , 6 )
120+ classBreaks <- c(0 , 0.15 , 0.3 , 0. 5 , 1 , 2 , 3 , 4 , 6 )
116121 colorVector <- NULL
117122 LegendTitle <- " Konzentration Valsartansäure [µg/L]"
118123}
@@ -151,7 +156,8 @@ rivers <- qsimVis::value_to_classes(
151156 colorVector = colorVector
152157)
153158
154- # plot data
159+ # plot data ############################################################################################
160+
155161# qsimVis::plot_empty_map(rivers = rivers_ext, plot_toner = FALSE)
156162qsimVis :: plot_empty_map(
157163 bbox = list (c(13 , 13.8 ),
@@ -162,49 +168,44 @@ qsimVis::plot_empty_map(
162168qsimVis :: Berlin_add_boarder()
163169qsimVis :: Berlin_add_waterbodies()
164170
165- mtext(text = " Mittlere Konzentration Valsartansäure (2002-2022), Ozonung aller Klärwerke" , side = 3 , line = 1 , cex = 1.2 , font = 1 )
171+ # Add Title
172+ mtext(text = " Mittlere Konzentration Valsartansäure (2002-2022), Ozonung Schönerlinde" , side = 3 , line = 1 , cex = 1.2 , font = 1 )
173+
166174# Add colored Rivers
167175qsimVis :: add_coloredRivers(
168176 ext_rivers = rivers
169177)
170178
179+ # Add Logos
171180qsimVis :: add_logo(
172181 logo_filename = " KWB_Logo.png" ,
173182 position = " bottomright" ,
174- size = 1.2 ,
183+ size = 0.8 ,
175184 indent = 0.1 ,
176- bg_col = rgb(red = 1 , green = 1 , blue = 1 , alpha = 0.5 )
185+ bg_col = rgb(red = 1 , green = 1 , blue = 1 , alpha = 0 ) # alpha = 0 behält transparenten Hintergrund
177186)
178187
179188qsimVis :: add_logo(
180189 logo_filename = " IMPETUS_Logo.png" ,
181190 position = " bottomleft" ,
182- size = 2.5 ,
191+ size = 1.8 ,
183192 indent = 0.1 ,
184- bg_col = rgb(red = 1 , green = 1 , blue = 1 , alpha = 0.5 )
193+ bg_col = rgb(red = 1 , green = 1 , blue = 1 , alpha = 0 ) # alpha = 0 behält transparenten Hintergrund
185194)
186195
187-
196+ # Add legend
188197qsimVis :: add_river_legend(
189198 ext_rivers = rivers ,
190199 LegendTitle = LegendTitle ,
191200 LegendLocation = " right"
192201)
193202
194- # Save as png
195- qsimVis :: saveActiveDevice(
196- filename = " test" ,
197- path = file.path(project_path , data_path ),
198- type = " png" , # "vector" = svg-file
199- resolution = " high"
200- )
201-
202203# Save as png
203204qsimVis :: saveActiveDevice(
204205 filename = " WaterModelPlot_Valsartansäure_2002-2022_Ozonung_alle_KW_2" ,
205206 path = file.path(project_path , data_path ),
206- type = " " , # "vector" = svg-file
207- resolution = " low "
207+ type = " png " , # "vector" = svg-file
208+ resolution = " medium "
208209)
209210
210211# save as svg (vector graphic)
0 commit comments