grpid = netcdf.inqNcid(ncid, name)
| Parameter | Description |
|---|---|
| ncid | Open netCDF file or group identifier. |
| grpid | Group identifier. |
| name | Group name. |
| Parameter | Description |
|---|---|
| grpid | Return value described by the syntax shown above. |
netcdf.inqNcid exposes group operations available in netCDF-4 files.
Groups organize dimensions, variables, and attributes into a hierarchy.
filename = [tempdir(), 'help_netcdf_inqNcid.nc'];
mode = bitor(netcdf.getConstant('NC_CLOBBER'), netcdf.getConstant('NC_NETCDF4'));
ncid = netcdf.create(filename, mode);
netcdf.defGrp(ncid, 'science');
gid = netcdf.inqNcid(ncid, 'science');
netcdf.close(ncid);
| Version | Description |
|---|---|
| 2.0.0 | initial version |