Meteorological Pre-Processing
1 Overview
Before running WaterGAP3, some meteorological inputs may need to be derived from the raw meteorological dataset. This page covers two such pre-processing steps: net longwave radiation and Leaf Area Index (LAI).
library(HydroGalleryCpp)
library(WaterGAP3Cpp)
library(WG3Tools)
path_Root <- "/projects/WaterGAP/WaterGAP3M/ProjectRun/Demo/Data/"
mark_Time <- "1979"2 Net longwave radiation
Only required if net longwave radiation is not already included in the meteorological dataset.
purrr::map(str_Continent, \(idx_Conti) {
prepare_nettoLongRadiat(
idx_Conti, mark_Time,
path_MeteoInput = paste0(path_Root, "MeteoInput/"),
path_HydroParam = paste0(path_Root, "HydroParam/")
)
})3 Leaf Area Index (LAI)
Simulate LAI for each continent and year before running the main model.
purrr::map(str_Continent, \(idx_Conti) {
run_WaterGAP3_LAI(
idx_Conti, mark_Time,
path_MeteoInput = paste0(path_Root, "MeteoInput/"),
path_HydroParam = paste0(path_Root, "HydroParam/")
)
})