Next: , Previous: NF90_INQ_TYPEIDS, Up: User Defined Data Types


5.3 Find a Typeid from Group and Name: nf90_inq_typeid

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.

Usage

     int nf90_inq_typeid(int ncid, char *name, nf90_type *typeidp);
ncid
The group id.
name
The name of a type.
typeidp
The typeid, if found.

Errors

NF90_NOERR
No error.
NF90_EBADID
Bad ncid.
NF90_EBADTYPE
Can't find type.

Example