3.5 Find the Length of a Group's Name: NF_INQ_GRPNAME_LEN
Given ncid, find length of the full name. (Root group is named "/",
with length 1.)
Usage
INTEGER FUNCTION NF_INQ_GRPNAME_LEN(INTEGER NCID, INTEGER LEN)
NCID
- The group id for this operation.
LEN
- An integer where the length will be placed.
Errors
NF_NOERR
- No error.
NF_EBADID
- Bad group id.
NF_ENOTNC4
- Attempting a netCDF-4 operation on a netCDF-3 file. NetCDF-4
operations can only be performed on files defined with a create mode
which includes flag HDF5. (see NF_OPEN).
NF_ESTRICTNC3
- This file was created with the strict netcdf-3 flag, therefore
netcdf-4 operations are not allowed. (see NF_OPEN).
NF_EHDFERR
- An error was reported by the HDF5 layer.
Example
This example is from nf_test/ftst_groups.F.
C Check the length of the full name.
retval = nf_inq_grpname_len(grpids(1), full_name_len)
if (retval .ne. nf_noerr) call handle_err(retval)