Given a group ID and a type name, find the ID of the type. If the type is not found in the group, then the parents are searched. If still not found, the entire file is searched.
INTEGER FUNCTION NF_INQ_TYPEID(INTEGER NCID, CHARACTER NAME, NF_TYPE TYPEIDP)
NCID
NAME
TYPEIDP
NF_NOERR
NF_EBADID
NF_EBADTYPE
The following example is from nf_test/ftst_types3.F:
C Go to a child group and find the id of our type. retval = nf_inq_grp_ncid(ncid, group_name, sub_grpid) if (retval .ne. nf_noerr) call handle_err(retval) retval = nf_inq_typeid(sub_grpid, type_name, typeid_in) if (retval .ne. nf_noerr) call handle_err(retval)