netcdf.inqGrpName
Retrieve name of group
Syntax
groupName = netcdf.inqGrpName(ncid)
Description
groupName = netcdf.inqGrpName(ncid)
returns
the name of a group specified by ncid
.
Input Arguments
|
Identifier of NetCDF file, returned by |
Output Arguments
|
Character vector containing the name of the group specified
by |
Examples
This example opens the NetCDF sample file and gets the names of groups in the dataset.
ncid = netcdf.open('example.nc','nowrite'); name = netcdf.inqGrpName(ncid); netcdf.close(ncid);
References
This function corresponds to the nc_inq_grpname
function
in the NetCDF library C API.