Description Usage Arguments Value Examples
This function allows you to merge a list of netcdf files
1 2 |
ff_list |
This is a character vector containing the files to merge |
merge |
This is the merge type. Use "merge" to combine files, "mergetime" to merge based on time. |
expr |
This is a cdo expression to apply to the merged files. |
out_file |
The name of the file output. If this is not stated, a data frame will be the output. |
zip_file |
Do you want any output file to be zipped to save space. Default is FALSE. |
cdo_output |
set to TRUE if you want to see the cdo output |
overwrite |
Do you want to overwrite out_file if it exists? Defaults to FALSE |
data frame or netcdf file.
1 2 3 4 5 | ff1 <- system.file("extdata", "icec.mon.ltm.1981-2010.nc", package = "rcdo")
ff2 <- system.file("extdata", "sst.mon.ltm.1981-2010.nc", package = "rcdo")
ff_list <- c(ff1, ff2)
coords <- expand.grid(Longitude = -39.5:10.5, Latitude = 40.5:69.5)
nc_merge(ff_list, cdo_output = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.