modifyNcdfCopyVar(file.con.orig, file.con.copy = file.con.orig, var.id.orig, var.id.copy = var.id.orig)
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 netCDF 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.
modifyNcdfCopyMetadata
, att.copy.nc