WaterUse Pre-Processing
1 Overview
This page derives the water-use variables required as calibration model input from the raw water-use data: net water withdrawals for surface and groundwater, and reservoir water demand.
The resulting files are written to path_WateruseInput, which is then passed to the water-use runs described in Getting Started with WaterGAP3.
library(WaterGAP3Cpp)
library(WG3Tools)
path_Root <- "/projects/WaterGAP/WaterGAP3M/ProjectRun/Demo/Data/"
str_Continent <- c("eu", "af", "as", "au", "na", "sa")
names(str_Continent) <- str_Continent
mark_Time <- "1979"2 Net Withdrawals from Surface and Groundwater
run_WaterGAP3_Netuse() computes the net water use taken from surface water and groundwater for each continent and time period, writing the result to path_WateruseInput.
purrr::map(str_Continent, \(idx_Conti) {
run_WaterGAP3_Netuse(
idx_Conti, mark_Time,
path_WateruseInput = paste0(path_Root, "WateruseInput/"),
path_HydroParam = paste0(path_Root, "HydroParam/")
)
})3 Reservoir Water Demand
run_WaterGAP3_ReservoiDemand() computes water demand at each reservoir cell for each continent and time period, writing the result to path_WateruseInput.
purrr::map(str_Continent, \(idx_Conti) {
run_WaterGAP3_ReservoiDemand(
idx_Conti, mark_Time,
path_WateruseInput = paste0(path_Root, "WateruseInput/"),
path_HydroParam = paste0(path_Root, "HydroParam/")
)
})