Routines (alphabetical) > Routines: N > NCDF Routines > NCDF_ATTRENAME

# NCDF_ATTRENAME

The NCDF_ATTRENAME procedure renames an attribute in a NetCDF file.

## Syntax

NCDF_ATTRENAME, Cdfid [, Varid] Oldname, Newname [, /GLOBAL]

## Arguments

### Cdfid

The NetCDF ID, returned from a previous call to NCDF_OPEN, NCDF_CREATE, or NCDF_GROUPDEF.

### Varid

The NetCDF variable ID, returned from a previous call to NCDF_VARDEF or NCDF_VARID, or the name of the variable. If the GLOBAL keyword is set, this argument must be omitted.

### OldName

A scalar string containing the attribute’s current name.

### NewName

A scalar string containing the attribute’s new name.

## Keywords

### GLOBAL

Set this keyword to rename a global attribute.

## Version History

Pre 4.0 | Introduced

## See Also

NCDF_ATTINQ