get_inventory {eurocordexr} | R Documentation |
Get inventory from path containing EURO-CORDEX .nc files
Description
Returns a data.table with information by splitting the netcdf files into their components (GCM, RCM, variable, experiment, ...) and aggregates over years.
Usage
get_inventory(path, add_files = TRUE)
Arguments
path |
Path that will be searched recursively for .nc files. |
add_files |
Boolean (default |
Value
A data.table with the inventory information.
See Also
check_inventory
for performing some checks.
Examples
# some empty example files
fn_zip <- system.file("extdata", "inv-test-files.zip", package = "eurocordexr")
tmpdir <- tempdir()
unzip(fn_zip, exdir = tmpdir)
dat_inv <- get_inventory(fs::path(tmpdir, "testdata", "mixed-vars"))
print(dat_inv)
[Package eurocordexr version 0.2.4 Index]