The GLEAM and MSWEP scripts are R Markdown documents that guide users in downloading and preprocessing daily and monthly averages from their respective global dataset variables.
The Multi-Source Weighted-Ensemble Precipitation (MSWEP) is a sub-daily precipitation dataset with global coverage at 0.1° resolution, spanning the period from 1979 to the present. More information can be found at: https://www.gloh2o.org/mswep/
The Global Land Evaporation Amsterdam Model (GLEAM) estimates the different components of land evaporation. The datasets are provided at 0.25° resolution and are available with daily temporal resolution from 1980 to 2023. Available variables from the GLEAM model include: Actual Evaporation (E), Soil Evaporation (Eb), Interception Loss (Ei), Potential Evaporation (Ep), Snow Sublimation (Es), Transpiration (Et), Open-Water Evaporation (Ew), Evaporative Stress (S), Root-Zone Soil Moisture (SMroot), and Surface Soil Moisture (SMsurf). More information can be found at: https://www.gleam.eu/
The Rmd scripts are dynamic documents that combine narrative text with code chunks, guiding the user through the code execution. Both code routines filter the server requests and download the datasets specified for the user's time window. The scripts are organized into four main steps:
- Setting paths and directories.
- Defining variables and the time window of interest.
- Downloading the datasets of interest.
- Preprocessing the NetCDF files for either a shapefile or a list of coordinates.
Note: To run the MSWEP script, please download the attached file 'MSWEP_daily_df.rds' and save it to your local folder. This file contains direct links to download the daily NetCDF files from the shared MSWEP Google Drive folders.
i. Download and Install
Follow the instructions below to install R and run the R scripts.
- R: Download and install R by following the link that corresponds to your operating system Windows, Mac, or Linux: https://cran.r-project.org/
- RStudio: RStudio is an application that assists you in writing R code. You can download it from: https://posit.co/downloads/ Once you have both R and RStudio installed on your computer, you can begin using R by opening the RStudio program. For more information, visit: https://rstudio-education.github.io/hopr/starting.html
ii. To open an R Markdown (Rmd) file in RStudio
- Open RStudio: Launch RStudio on your computer.
- Open Rmd File: Once you're in RStudio, you can open an Rmd file in one of the following ways:
- File > Open File.
- Drag the Rmd file from your file explorer and drop it onto the RStudio window.
- Run: Once the Rmd file is open, you can run the individual chunks of code by placing your cursor within the chunk and clicking the "Run" button in the toolbar or using the keyboard shortcut Ctrl+Shift+Enter.
M.Sc. Olawale Joshua Abidakun (TU Dresden)
M.Sc. Joy Liu (TU Dresden)
Please contact: Maria Alejandra Vela | maria_alejandra.vela_castillo1@mailbox.tu-dresden.de