Next: , Previous: NF90_INQ_NCID, Up: Groups


3.2 Get a List of Groups in a Group: NF90_INQ_GRPS

Given a location id, return the number of groups it contains, and an array of their ncids.

Usage

       function nf90_inq_grps(ncid, numgrps, ncids)
         integer, intent(in) :: ncid
         integer, intent(out) :: numgrps
         integer, intent(out) :: ncids
         integer :: nf90_inq_grps
NCID
The group id for this operation.
NUMGRPS
An integer which will get number of groups in this group.
NCIDS
An array of ints which will receive the IDs of all the groups in this group.

Errors

NF90_NOERR
No error.
NF90_EBADID
Bad group id.
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