Next: , Previous: NF90_INSERT_ENUM, Up: Enum Type


5.9.3 Learn About a Enum Type: NF90_INQ_ENUM

Get information about a user-defined enumeration type.

Usage

       function nf90_inq_enum(ncid, xtype, name, base_nc_type, base_size, num_members)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         character (len = *), intent(out) :: name
         integer, intent(out) :: base_nc_type
         integer, intent(out) :: base_size
         integer, intent(out) :: num_members
         integer :: nf90_inq_enum
NCID
The group ID of the group which holds the enum type.
XTYPE
The typeid for this enum type, as returned by NF90_DEF_ENUM, or NF90_INQ_VAR.
NAME
Character array which will get the name. It will have a maximum length of NF90_MAX_NAME.
BASE_NF90_TYPE
An integer which will get the base integer type of this enum.
BASE_SIZE
An integer which will get the size (in bytes) of the base integer type of this enum.
NUM_MEMBERS
An integer which will get the number of members defined for this enumeration type.

Errors

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

Example