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

1
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

nothing is returned.

Author(s)

Jannis v. Buttlar

See Also

modifyNcdfCopyMetadata, modifyNcdfCopyVar

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.