The already-existing netCDF file that we want to manipulate. This must
be a value of class "ncdf4" returned by a call to nc_open(...,write=TRUE).
old_varname
The variable in the file that is to be renamed.
This can be a string with the name of the variable to be renamed,
or a value of class "ncvar4" returned by a call to ncvar_def().
new_varname
A string containing the new name of the variable.
verbose
If true, run verbosely.
Details
This call allows you to rename a variable that already exists in a netCDF
file.
NOTE that the return value of this routine should replace the old netCDF
file handle that you were using. This newly returned value reflects the
modifications to the file that were accomplished by calling this routine.
Value
The updated value of nc that contains the new name.
This needs to replace the old value of nc in the code.
I..e, ncid <- ncvar_rename( ncid, ... ).