mergeNC: Merge multiple NetCDF files into one

View source: R/mergeNC.R

mergeNCR Documentation

Merge multiple NetCDF files into one

Description

Merge multiple NetCDF files into one

Usage

mergeNC(files, outfile)

Arguments

files

character. List of filepaths, which should lead to NetCDF files.

outfile

character. Output filename of the merged data.

Value

A NetCDF file containing all of the merged data.

Examples

## Not run: 
files <- list.files(paste0(system.file(package="processNC"), "/extdata"), 
                    pattern="tas.*\\.nc", full.names=TRUE)
temp <- tempfile(fileext=".nc")
mergeNC(files=files, outfile=temp)
terra::rast(temp) 

## End(Not run)

RS-eco/processNC documentation built on Aug. 7, 2023, 8:12 a.m.