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: nc_inq_compound_fieldndims, Up: User Defined Data Types



5.19 Find the Sizes of Dimensions in an Array Field: nc_inq_compound_fielddim_sizes

Given the xtype and the fieldid, get the sizes of dimensions for that field. User must have allocated storage for the dim_sizes.

Usage

     int nc_inq_compound_fielddim_sizes(int ncid, nc_type xtype, int fieldid,
                                        int *dim_sizes);
ncid
The file or group ID.
xtype
The typeid for this compound type, as returned by nc_def_compound, or nc_inq_var.
fieldid
The id of the field in the compound type. Fields are numbered starting with 0 for the first inserted field.
dim_sizesp
Pointer to an array of int which will get the sizes of the dimensions of the field. Non-array fields have 0 dimensions.

Errors

NC_NOERR
No error.
NC_EBADTYPEID
Bad typeid.
NC_EBADFIELDID
Bad fieldid.
NC_EHDFERR
An error was reported by the HDF5 layer.

Example

See the example section for nc_inq_compound.
 
 
  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