newhall_cmip6_cache()
: Uses the geodata package to download and cache data at the specified resolution.
newhall_cmip6_rast()
: Create a SpatRaster object. This object contains temperature and precipitation data for the specified data set, at the specified resolution, using the standard jNSM column naming scheme.
newhall_cmip6_subset():
Used to create a subset of the CMIP6 data corresponding to the extent of an input spatial object x
.
newhall_cmip6_cache(
model,
ssp,
time,
resolution = "10m",
version = "2.1",
overwrite = FALSE,
CMIP6_PATH = file.path(newhall_data_dir("cache"), "CMIP6")
)
newhall_cmip6_rast(
model,
ssp,
time,
resolution = "10m",
version = "2.1",
CMIP6_PATH = file.path(newhall_data_dir("cache"), "CMIP6"),
tiffile = list.files(file.path(CMIP6_PATH, paste0("wc", version, "_", resolution)),
pattern = "\\.tif$", recursive = TRUE)
)
newhall_cmip6_subset(
x,
model,
ssp,
time,
resolution = "10m",
template = "EPSG:4326",
CMIP6_PATH = file.path(newhall_data_dir("cache"), "CMIP6")
)
character. Climate model abbrevation. One of "ACCESS-CM2", "ACCESS-ESM1-5", "AWI-CM-1-1-MR", "BCC-CSM2-MR", "CanESM5", "CanESM5-CanOE", "CMCC-ESM2", "CNRM-CM6-1", "CNRM-CM6-1-HR", "CNRM-ESM2-1", "EC-Earth3-Veg", "EC-Earth3-Veg-LR", "FIO-ESM-2-0", "GFDL-ESM4", "GISS-E2-1-G", "GISS-E2-1-H", "HadGEM3-GC31-LL", "INM-CM4-8", "INM-CM5-0", "IPSL-CM6A-LR", "MIROC-ES2L", "MIROC6", "MPI-ESM1-2-HR", "MPI-ESM1-2-LR", "MRI-ESM2-0", "UKESM1-0-LL"
character. A valid Shared Socio-economic Pathway code: "126", "245", "370" or "585"
character. A valid time period. One of "2021-2040", "2041-2060", or "2061-2080"
character. Either "10m"
, "5m"
, "2.5m"
or "30s"
. In minutes (or seconds) of degrees ("EPSG:4326"
).
character. Version number. Default: "2.1"
. See geodata::worldclim_global()
for details.
Force download of new cache files? Default: FALSE
.
Default: file.path(newhall_data_dir("cache"), "CMIP6")
Optional: custom vector of paths to files to use to build raster. Defaults to all .TIF files in the specified cache directory and resolution.
A SpatVector, SpatRaster, SpatExtent, or any other object type suitable to use with terra::crop()
.
Template SpatRaster or target CRS specification for re-projection. Default: "EPSG:4326
character. Vector of file paths (to CMIP6 .TIF files).
Eyring, V., Bony, S., Meehl, G. A., Senior, C. A., Stevens, B., Stouffer, R. J., and Taylor, K. E.: Overview of the Coupled Model Intercomparison Project Phase 6 (CMIP6) experimental design and organization, Geosci. Model Dev., 9, 1937-1958, doi:10.5194/gmd-9-1937-2016, 2016.
Detailed and up-to-date description of the CMIP6 experiments protocol: https://search.es-doc.org/?project=cmip6&