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