modifyNcdfCopyVar: modifyNcdfCopyVar

Description Usage Arguments Details Value Author(s) See Also

View source: R/modifyNcdfCopyVar.R

Description

copy variable values between ncdf files

Usage

1
2
modifyNcdfCopyVar(file.con.orig, file.con.copy = file.con.orig, 
    var.id.orig, var.id.copy = var.id.orig)

Arguments

file.con.orig

a NetCDF object pointing to the original ncdf file FROM which to copy the variable.

file.con.copy

a NetCDF object pointing to the ncdf file TO which to copy the variable.

var.id.orig

character string or ncdf variable id: The name or id of the variable to copy from.

var.id.copy

character string or ncdf variable id: The name or id of the variable to copy to.

Details

Copies all values of one variable from one ncdf file to another ncdf file and takes care of dimensions etc.

Two cases are implemented: Case 1: copy of one variable and attributes from one file to another file: The dimensions of the variable to copy have to be also existent (i.e. dimensions with the same name (not necessarily id)) in the ncdf file to which the variable should be copied. In addition these dimensions have to have the same sizes.

Case 2: copy of one variable to another one (of different name) in the same file.

Value

Nothing is returned

Author(s)

Jannis v. Buttlar, Thomas Wutzler

See Also

modifyNcdfCopyMetadata, att.copy.nc


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