NCDF_ATTNAME
Syntax | Return Value | Arguments | Keywords | Version History | See Also
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 the NULL string ("") if there is no such attribute.
Arguments
Cdfid
The netCDF ID, returned from a previous call to NCDF_OPEN or NCDF_CREATE.
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