Next: , Previous: NF90_INQ_GRP_NCID, Up: Groups


3.10 Find a Group by its Fully-qualified Name: NF90_INQ_GRP_FULL_NCID

Given a fully qualified group name an an ncid, find the ncid of the group id.

Usage

       function nf90_inq_grpname_full(ncid, len, name)
         integer, intent(in) :: ncid
         integer, intent(out) :: len
         character (len = *), intent(out) :: name
         integer :: nf90_inq_grpname_full
     
         nf90_inq_grpname_full = nf_inq_grpname_full(ncid, len, name)
       end function nf90_inq_grpname_full
NCID
The group id to look in.
FULL_NAME
The fully-qualified group name.
GRP_NCID
This will get the group id, if it is found.

Return Codes

The following return codes may be returned by this function.

NF90_NOERR
No error.
NF90_EBADID
Bad group id.
NF90_EINVAL
No name provided or name longer than NF90_MAX_NAME.
NF90_ENOGRP
Named group not found.
NF90_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 NF90_OPEN).
NF90_ESTRICTNC3
This file was created with the strict netcdf-3 flag, therefore netcdf-4 operations are not allowed. (see NF90_OPEN).
NF90_EHDFERR
An error was reported by the HDF5 layer.

Example

This example is from test program nf_test/tstf90_grps.f90.

       ! Check for the groups with full group names.
       write(grp1_full_name, '(AA)') '/', GRP1_NAME
       call check(nf90_inq_grp_full_ncid(ncid, grp1_full_name, grpid1))