The nc_varinq_natts function returns the number of attributes for a variable, given its ID.
Return Value
natts is the number of attributes for the variable with the ID varid. If an error occurs natts is -1.
Parameters
Identifies the netCDF file.
varid is the ID of a variable.
id-1291545