The NCDF_ATTNAME function returns the name of an attribute in a NetCDF file given its ID.
Syntax
Result = NCDF_ATTNAME( Cdfid [, Varid] , Attnum [, /GLOBAL])
Return Value
Returns the specified attribute’s name or an empty string (“”) if there is no such attribute.
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.
Attnum
An expression containing the number of the desired attribute. The attributes for each variable are numbered from 0 to the number-of-attributes minus 1. Note that the number of attributes can be found using NCDF_VARINQ or NCDF_INQUIRE (to find the number of global variables).
Keywords
GLOBAL
Set this keyword to return the name of one of the global attributes.
Version History
See Also
NCDF_ATTINQ