.. highlightlang:: us .. _nc_attrename: nc_attrename ============ .. index:: nc_attrename .. us.tag nc_attrename ENGLISH NC_Att New320 :ref:`nc_attrename` renames a given attribute. .. function:: ret = nc_attrename(ncid, varid, ssName, ssNewName) .. us.return **Return Value** *ret* is -1 if an error occurs, otherwise *ret* is 1. .. us.params **Parameters** .. uparam:: ncid Identifies the netCDF file. .. uparam:: varid *varid*. .. uparam:: ssName *ssName* is the name of the netCDF attribute. .. uparam:: ssNewName *ssName* is the new name of the netCDF attribute. .. seealso:: :ref:`overview-netcdf-files`, :ref:`nc_create` :sub:`id-236618`