22
33project_path <- " Y:/wGB/Projects/2023_MISA5"
44data_path <- " Data-Work packages/AP2_Szenarienrechnung/berechnungen"
5- scenario_name <- " S8"
5+ scenario_name <- " S0"
6+ # Definition Sanierte Einzugsgebiet:
7+ # catchments <- c("Bln IX", "Bln VII", "Bln IV", "Bln V", "Bln VII", "Bln I", "Bln II", "Nkn I", "Nkn II")
8+ catchments <- NULL
9+
10+ # aber hier automatisch --------------------------------------------------------
611
712# load scenario data
813load(file = file.path(
@@ -24,7 +29,7 @@ classBreaks <- c(0, 25, 50, 100, 200, 300, Inf)
2429colorVector <- NULL # -> MisaColor
2530LegendTitle <- " Unterschreitungsdauer in h (1,5 mg/L)"
2631
27- #
32+
2833# Combine river stretch and simulations data
2934mapping_table <- read.table(
3035 file = system.file(package = " qsimVis" ,
@@ -54,31 +59,68 @@ qsimVis::plot_empty_map(
5459 c(52.45 , 52.57 ))
5560)
5661
62+ # ganz Berlin
63+ qsimVis :: Berlin_add_waterbodies(bg_color = " lightblue" )
64+ qsimVis :: Berlin_add_catchments(
65+ plot_names = TRUE ,
66+ highlight_catchments = catchments ,
67+ highlight_style = " beige"
68+ )
69+ # Add colored Rivers
70+ qsimVis :: add_coloredRivers(
71+ ext_rivers = rivers
72+ )
73+ qsimVis :: add_river_legend(
74+ ext_rivers = rivers ,
75+ LegendTitle = LegendTitle ,
76+ LegendLocation = " top" , cex = 0.8
77+ )
78+ qsimVis :: saveActiveDevice(
79+ filename = paste0(scenario_name , " _def_hours" ),
80+ path = file.path(project_path ,data_path ,scenario_name ," 5_assessment_output" ),
81+ type = " " ,
82+ resolution = " high"
83+ )
84+ qsimVis :: saveActiveDevice(
85+ filename = paste0(scenario_name , " _def_hours" ),
86+ path = file.path(project_path ,data_path ,scenario_name ," 5_assessment_output" ),
87+ type = " vector"
88+ )
5789
90+ # ganz Berlin ------------------------------------------------------------------
91+ qsimVis :: plot_empty_map(
92+ bbox = list (c(13 , 13.8 ),
93+ c(52.35 , 52.68 ))
94+ )
5895# catchments <- c("Bln IX", "Bln VII", "Bln IV", "Bln V", "Bln VII", "Bln I", "Bln II", "Nkn I", "Nkn II")
5996catchments <- NULL
60- # qsimVis::Berlin_add_boarder()
97+ qsimVis :: Berlin_add_boarder()
6198qsimVis :: Berlin_add_waterbodies(bg_color = " lightblue" )
6299qsimVis :: Berlin_add_catchments(
63- plot_names = TRUE ,
100+ plot_names = FALSE ,
64101 highlight_catchments = catchments ,
65102 highlight_style = " beige"
66103)
67-
68-
69104# Add colored Rivers
70105qsimVis :: add_coloredRivers(
71106 ext_rivers = rivers
72107)
73-
74108qsimVis :: add_river_legend(
75109 ext_rivers = rivers ,
76110 LegendTitle = LegendTitle ,
77111 LegendLocation = " top" , cex = 0.8
78112)
79-
80- # Write output table
81- # writexl::write_xlsx(x = output, path = file.path(path, "Viewer_Skript", "output_table.xlsx"))
113+ qsimVis :: saveActiveDevice(
114+ filename = paste0(scenario_name , " _def_hours_berlin" ),
115+ path = file.path(project_path ,data_path ,scenario_name ," 5_assessment_output" ),
116+ type = " " ,
117+ resolution = " high"
118+ )
119+ qsimVis :: saveActiveDevice(
120+ filename = paste0(scenario_name , " _def_hours_berlin" ),
121+ path = file.path(project_path ,data_path ,scenario_name ," 5_assessment_output" ),
122+ type = " vector"
123+ )
82124
83125
84126
0 commit comments