Reads UCSB-CHG/CHIRPS/DAILY (Climate Hazards Group InfraRed
Precipitation With Station Data) from Google Earth Engine.
Returns a terra::rast() SpatRaster with precipitation in mm/day.
Usage
read_chirps(
date,
region,
backend = c("rest", "rgee"),
cache = TRUE,
max_tries = 3L,
initial_delay = 1
)Arguments
- date
Character or Date. Date in
"YYYY-MM-DD"format.- region
An sf::sf,
sf::st_sfc(), orterra::ext()object defining the spatial extent. Required.- backend
Character.
"rest"(default) or"rgee".- cache
Logical. Use disk cache? Default
TRUE.- max_tries
Integer. Retry attempts. Default
3L.- initial_delay
Numeric. Initial retry delay in seconds. Default
1.
Value
A terra::rast() SpatRaster. CRS: EPSG:4326. Values:
precipitation in mm/day.
Data availability
1981-01-01 to near-present. Daily. ~5.5 km spatial resolution. Coverage: 50S-50N (land only).
References
Funk, C. et al. (2015). The climate hazards infrared precipitation with stations – a new environmental record for monitoring extremes. Scientific Data, 2, 150066. doi:10.1038/sdata.2015.66
See also
read_gee(), collect_gee_data()
Other GEE readers:
read_era5(),
read_gee(),
read_landsat(),
read_modis_lst(),
read_modis_ndvi(),
read_sentinel2(),
read_slga(),
read_srtm(),
read_worldclim()
Examples
if (FALSE) { # interactive()
precip <- read_chirps(date = "2024-06-15",
region = terra::ext(138, 140, -36, -34))
}