Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

ncid

Identifier of NetCDF file, returned by netcdf.create or netcdf.open, or of a NetCDF group, returned by netcdf.defGrp.

Output Arguments

groupName

Text string specifying name of a group. The root group has the name '/'.

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.

For copyright information, read the netcdfcopyright.txt and mexnccopyright.txt files.

Was this topic helpful?