Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Next: , Previous: NF90_INSERT_ENUM, Up: Enum Type



5.8.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


       
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690