Given ncid, find relative name of group. (Root group is named "/").
The name provided by this function is relative to the parent group. For a full path name for the group is, with all parent groups included, separated with a forward slash (as in Unix directory names) See NF_INQ_GRPNAME_FULL.
INTEGER FUNCTION NF_INQ_GRPNAME(INTEGER NCID, CHARACTER*(*) NAME)
NCID
NAME
NF_NOERR
NF_EBADID
NF_ENOTNC4
NF_ESTRICTNC3
NF_EHDFERR
This example is from nf_test/ftst_groups.F.
C Check the name of the root group. retval = nf_inq_grpname(ncid, name_in) if (retval .ne. nf_noerr) call handle_err(retval) if (name_in(1:1) .ne. '/') stop 2