Next: NF_INQ_GRPNAME_LEN, Previous: NF_INQ_VARIDS, Up: Groups
Find all dimids for a location. This finds all dimensions in a group, or any of its parents.
INTEGER FUNCTION NF_INQ_DIMIDS(INTEGER NCID, INTEGER DIMIDS, INTEGER INCLUDE_PARENTS)
NCIDDIMIDSINCLUDE_PARENTSNF_NOERRNF_EBADIDNF_ENOTNC4NF_ESTRICTNC3NF_EHDFERRThis example is from nf_test/ftst_groups.F.
C Check dimids in subgroup.
retval = nf_inq_dimids(subgrp_in, ndims, dimids_in, 0)
if (retval .ne. nf_noerr) call handle_err(retval)
if (ndims .ne. 2 .or. dimids_in(1) .ne. dimids(1) .or.
& dimids_in(2) .ne. dimids(2)) stop 2