Learn R Programming

ncdf.tools (version 0.7.1.295)

modifyNcdfCopyAtts: Copy all attributes between different netCDF variables

Description

modifyNcdfcopyAtts copies all attributes from one variable in a netCDF file to another variable (possibly in another file).

Usage

modifyNcdfCopyAtts(file.con.orig, var.orig, var.copy, file.con.copy = file.con.orig)

Arguments

file.con.orig
a NetCDF object pointing to the original netCDF file from which to copy the attributes
var.orig
the name or id of the variable FROM which to copy all attributes
var.copy
the name or id of the variable TO which to copy all attributes
file.con.copy
a NetCDF object pointing to the netCDF file to which to copy the attributes (same as file.con.orig by default)

Value

See Also

modifyNcdfCopyMetadata, modifyNcdfCopyVar