nc_attnameΒΆ
nc_attname returns the attribute name.
-
ssName = nc_attname(ncid, varid, attnum)
-
ssName = nc_attname(ncid, varid, attnum, bToUnderscore)
Return Value
ssName
Parameters
-
ncid
Identifies the netCDF file.
-
varid
varid is the variable ID of the variable to which the attribute will be assigned, or -1 for a global attribute.
-
attnum
attnum is the attribute number.
-
bToUnderscore
If bToUnderscore is TRUE (1) the special characters in the attribute name are replaced by underscores. For the value 0 the special characters remain in the channel name. Allowed spezial characters:
.
,-
,+
,$
,#
,~
,!
,^
,&
,%
Defaul value is FALSE (0).
History
Version | Description |
---|---|
R2016.6 | Optional parameter bToUnderscore. |
See also
id-487124