transNcdfMerge: transNcdfMerge

Description Usage Arguments Details Value Author(s)

View source: R/transNcdfMerge.R

Description

merge several ncdf files

Usage

1
2
3
4
5
transNcdfMerge(file.names, name.change = function(x) return(x), 
    time.diff = NULL, fun.start = NULL, fun.end = NULL, 
    time.range.out = c(), format = character(), 
    convert = .getChronDateFromName1, path.target = getwd(), 
    target.name = "")

Arguments

file.names

character vector: names of the files to merge.

name.change
time.diff

maximum time difference to be allowed between two subsequent input files.

fun.start

function: function to retrieve the start date from the file name e.g. function(x) substr(x, nchar(x)-15, nchar(x)-10)

fun.end

see fun.start

time.range.out

POSIXct vector: (start date, end date): start and end dates of the final file. If not supplied, all available data are used.

format

character string: see ?transNcdfCutFile

convert
path.target

file path: where to copy to the results files.

target.name

Details

Convenience wrapper around cdo to merge several ncdf files containing subsequent time steps into one continuous file. TODO provide example TODO useful defaults TODO detect overlapping time spans

Value

list: name of the file created and its time range.

Author(s)

Jannis v. Buttlar, Thomas Wutzler


bgctw/ncdfTools documentation built on Jan. 29, 2020, 1:16 p.m.