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

Previous: NF90_INQ_COMPOUND, Up: Compound Types



5.5.5 Learn About a Field of a Compound Type: NF90_INQ_COMPOUND_FIELD

Get information about one of the fields of a compound type.

Usage

       function nf90_inq_compound_field(ncid, xtype, fieldid, name, offset, &
            field_typeid, ndims, dim_sizes)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         integer, intent(in) :: fieldid
         character (len = *), intent(out) :: name
         integer, intent(out) :: offset
         integer, intent(out) :: field_typeid
         integer, intent(out) :: ndims
         integer, intent(out) :: dim_sizes
         integer :: nf90_inq_compound_field
     
       function nf90_inq_compound_fieldname(ncid, xtype, fieldid, name)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         integer, intent(in) :: fieldid
         character (len = *), intent(out) :: name
         integer :: nf90_inq_compound_fieldname
     
       function nf90_inq_compound_fieldindex(ncid, xtype, name, fieldid)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         character (len = *), intent(in) :: name
         integer, intent(out) :: fieldid
         integer :: nf90_inq_compound_fieldindex
     
       function nf90_inq_compound_fieldoffset(ncid, xtype, fieldid, offset)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         integer, intent(in) :: fieldid
         integer, intent(out) :: offset
         integer :: nf90_inq_compound_fieldoffset
     
       function nf90_inq_compound_fieldtype(ncid, xtype, fieldid, field_typeid)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         integer, intent(in) :: fieldid
         integer, intent(out) :: field_typeid
         integer :: nf90_inq_compound_fieldtype
     
       function nf90_inq_compound_fieldndims(ncid, xtype, fieldid, ndims)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         integer, intent(in) :: fieldid
         integer, intent(out) :: ndims
         integer :: nf90_inq_compound_fieldndims
     
       function nf90_inq_cmp_fielddim_sizes(ncid, xtype, fieldid, dim_sizes)
         integer, intent(in) :: ncid
         integer, intent(in) :: xtype
         integer, intent(in) :: fieldid
         integer, intent(out) :: dim_sizes
         integer :: nf90_inq_cmp_fielddim_sizes
NCID
The groupid where this compound type exists.
XTYPE
The typeid for this compound type, as returned by NF90_DEF_COMPOUND, or NF90_INQ_VAR.
FIELDID
A one-based index number specifying a field in the compound type.
NAME
A character array which will get the name of the field. The name will be NF90_MAX_NAME characters, at most.
OFFSETP
An integer which will get the offset of the field.
FIELD_TYPEID
An integer which will get the typeid of the field.
NDIMSP
An integer which will get the number of dimensions of the field.
DIM_SIZESP
An integer array which will get the dimension sizes of the field.

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