eurocordexr (version 0.2.4)

get_inventory: 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)

Value

A data.table with the inventory information.

Arguments

path

Path that will be searched recursively for .nc files.

add_files

Boolean (default TRUE), if TRUE, will add a column containing lists of associated files with their full paths (useful e.g. for further processing).

See Also

check_inventory for performing some checks.

Examples

Run this code
# 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)


Run the code above in your browser using DataLab