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