| Contents | Index |
childGroupId = netcdf.inqNcid(ncid,childGroupName)
childGroupId = netcdf.inqNcid(ncid,childGroupName) returns the ID of the child group, specified by the name childGroupName, in the file or group specified by ncid.
ncid |
Identifier of a NetCDF file, returned by netcdf.create or netcdf.open, or of a NetCDF group, returned by netcdf.defGrp. |
childGroupName |
Text string specifying the name of a NetCDF group. |
childGroupID |
Identifier of a NetCDF group. |
This example opens the sample NetCDF dataset and then gets the ID of a group in the dataset.
ncid = netcdf.open('example.nc','nowrite');
gid = netcdf.inqNcid(ncid,'grid1');
netcdf.close(ncid);
This function corresponds to the nc_inq_ncid function in the netCDF library C API. Read the files netcdfcopyright.txt and mexnccopyright.txt for more information.
netcdf | netcdf.inqGrpName | netcdf.inqGrpNameFull

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |