Load UERRA data into climate4R grid format
Usage
loadUerra(
file,
var,
lon_lim = c(-11, 12),
lat_lim = c(28, 44),
dictionary = system.file("extdata", "UERRA_dictionary.csv", package = "dsclim"),
aggr_times = NULL,
aggr_fun = mean
)
Arguments
- file
A string with the file name with the UERRA data to be loaded.
- var
A string with the variable name from the file to be loaded.
- lon_lim
An optional vector with two values specifying the longitudinal limits (min and max) to be loaded.
- lat_lim
An optional vector with two values specifying the latitudinal limits (min and max) to be loaded.
- dictionary
An optional string with the filename with the dictionary for the UERRA data. By default it loads an internal dictionary from the package.
- aggr_times
An optional numeric specifying the number of cells to be aggregated.
- aggr_fun
An optional function specifying the function to be used in aggregation if aggr.times was specified.
Value
A climate4R grid data (see loadeR::loadGridData()
)