Loadable Function: [ndims,nvars,ngatts,unlimdimid] = netcdf_inq(ncid)

Return the number of dimension (ndims), the number of variables (nvars), the number of global attributes (ngatts) and the id of the unlimited dimension (unlimdimid). If no unlimited dimension is declared -1 is returned. For NetCDF4 files, one should use the function netcdf_inqUnlimDims as multiple unlimite dimension exists.

See also: netcdf_inqUnlimDims.

Package: netcdf