Next: , Previous: NF90_INQ_ENUM, Up: Enum Type


5.9.4 Learn the Name of a Enum Type: nf90_inq_enum_member

Get information about a member of an enum type.

Usage

       function nf90_inq_enum_member(ncid, xtype, idx, name, value)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         integer, intent(in) :: idx
         character (len = *), intent(out) :: name
         integer, intent(in) :: value
         integer :: nf90_inq_enum_member
NCID
The groupid where this enum type exists.
XTYPE
The typeid for this enum type.
IDX
The one-based index number for the member of interest.
NAME
A character array which will get the name of the member. It will have a maximum length of NF90_MAX_NAME.
VALUE
An integer that will get the value associated with this member.

Errors

NF90_NOERR
No error.
NF90_EBADTYPEID
Bad type id.
NF90_EHDFERR
An error was reported by the HDF5 layer.

Example