Description Usage Arguments Author(s) See Also
View source: R/modifyNcdfAddDim.R
Adds another dimension to specified variables in a netCDF file and saves the results in another netCDF file.
1 2 3 | modifyNcdfAddDim(file.con.orig, file.con.copy, var.name = "Default",
dim.name = "new.dim", dim.values = c(), dim.length = length(dim.values),
dim.pos.copy = 1)
|
file.con.orig |
a NetCDF object pointing to the respective netCDF file FROM which to copy |
file.con.copy |
a NetCDF object pointing to the respective netCDF file TO which to copy |
var.name |
character vector: names of the variables to which a dimension should be added. Defaults to all except those with identical names as dimensions in file.con.orig (coordinate variables) |
dim.name |
character string: name of the dimension to add |
dim.values |
numeric/character vector with the values for the dimension (coordinate values) |
dim.length |
integer: length of the dimension to add |
dim.pos.copy |
integer: position in the new dimension where to copy the original data. If set to 0, no values are copied and the variable in the new file will be empty. Setting to 1 (default) results in the original values to be filled in the first value of the new dimension and the remaining values left empty (NaN). |
Jannis v. Buttlar
modifyNcdfCopyMetadata
, att.copy.nc
,
modifyNcdfCopyVar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.