nc_rename: Renaming variable and dimensions in a netCDF File

View source: R/nctools-main.R

nc_renameR Documentation

Renaming variable and dimensions in a netCDF File

Description

Renaming variable and dimensions in a netCDF File

Usage

nc_rename(
  filename,
  oldnames,
  newnames,
  output,
  verbose = FALSE,
  overwrite = FALSE
)

Arguments

filename

The filename of the original ncdf file.

oldnames

A string vector containing the names of the variable or dimensions in the file that are to be renamed.

newnames

A string vector containing the new names of the variables or dimensions.

output

Optional, the output file with the changes. By default, it will overwrite the old file.

verbose

If TRUE, run verbosely.

overwrite

overwrite output file if already exists?


roliveros-ramos/nctools documentation built on Aug. 13, 2022, midnight