load_chirps: Function for loading CHIRPS (monthly) data.
Description
The data has to be previously downloaded, see download_chirps_monthly. The resulting data table contains precip in unit mm/day.
Usage
load_chirps(
years = NULL,
months = NULL,
version = "UCSB",
resolution = "low",
us = (resolution == "low"),
load_prelim = TRUE
)
Value
the derived data table
Arguments
- years, months
Optional subset of years and months you want to load. The default is to load everything that has been downloaded locally.
You can update your local CHIRPS download by calling download_chirps_monthly
- version
Either 'UCSB' to load the original version from UCSB or 'ICPAC' to load CHIRPS blended (both need to be downloaded first).
- resolution
Either 'low' for loading the coarser upscaled version, or 'high' for loading the data on full resolution
- us
logical. If TRUE, the upscaled version is loaded. Takes precedence over resolution.
- load_prelim
logical. Should preliminary data be loaded? Note that the preliminary data is always from UCSB, not from ICPAC.
Examples
Run this codeif(interactive()){
load_chirps()
}
Run the code above in your browser using DataLab