Netcdf Toolkit - netcdf.inqAttID
attnum =netcdf.inqAttID(ncid,varid,attname)Return the attribute id attnum of the attribute named attname of the variable varid in the dataset ncid. For global attributes varid can be netcdf.getConstant("global").
See also: netcdf.inqAttName.