nc_inquire_ngatts returns the number of global attributes in a nc file.
Return Value
If the function succeeds, the return value is the number of global attributes. If the function fails, the return value is -1.
Parameters
Identifies the nc file.
See also
id-2107885