Previous: NF90_DEF_OPAQUE, Up: Opaque Type


5.8.2 Learn About an Opaque Type: NF90_INQ_OPAQUE

Given a typeid, get the information about an opaque type.

Usage

       function nf90_inq_opaque(ncid, xtype, name, size)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         character (len = *), intent(out) :: name
         integer, intent(out) :: size
         integer :: nf90_inq_opaque
NCID
The ncid for the group containing the opaque type.
XTYPE
The typeid for this opaque type, as returned by NF90_DEF_COMPOUND, or NF90_INQ_VAR.
NAME
The name of the opaque type will be copied here. It will be NF90_MAX_NAME bytes or less.
SIZEP
The size of the opaque type will be copied here.

Errors

NF90_NOERR
No error.
NF90_EBADTYPEID
Bad typeid.
NF90_EBADFIELDID
Bad fieldid.
NF90_EHDFERR
An error was reported by the HDF5 layer.

Example