Skip to contents

Automatically upload databases available at UC servers

Usage

load_data_hub(
  database = "CORDEX-CORE",
  country,
  variable,
  xlim = NULL,
  ylim = NULL,
  years.hist = NULL,
  years.proj,
  path.to.obs = NULL,
  buffer = 0,
  domain = NULL,
  aggr.m = "none",
  n.sessions = 6,
  years.obs = NULL
)

Arguments

database

character, indicating the database of interest (default to CORDEX-CORE).

country

character, in English, indicating the country of interest or an object of class sf. To select a bounding box, set country to NULL and define arguments xlim and ylim

variable

character indicating the variable name

xlim

numeric of length = 2, with minimum and maximum longitude coordinates, in decimal degrees, of the bounding box of interest

ylim

same as xlim, but for the selection of the latitudinal range

years.hist

numeric, specify year range for the historical experiment

years.proj

numeric, specify year range for projections

path.to.obs

character, default to NULL. To automatically load W5E5 or ERA5, specify W5E5 or ERA5.

buffer

numeric, default is zero.

domain

charachter, specify the CORDEX-CORE domain (e.g AFR-22, EAS-22).

aggr.m

character, monthly aggregation. One of none, mean or sum

n.sessions

numeric, number of sessions to use in parallel processing. Default to 6. Increasing the number of sessions will not necessarily results in better performances. Leave as default unless necessary

years.obs

NULL or numeric, specify year range for observation. Specifying years.obs will overwrite years.hist for observations

Value

list of length 2. List[[1]] contains a tibble with list columns and List[[2]] the bbox