7 #include "ncdispatch.h"
67 int stat = NC_check_id(ncid,&ncp);
69 return ncp->dispatch->def_compound(ncid,size,name,typeidp);
100 size_t offset,
nc_type field_typeid)
103 int stat = NC_check_id(ncid, &ncp);
105 return ncp->dispatch->insert_compound(ncid, xtype, name,
106 offset, field_typeid);
142 size_t offset,
nc_type field_typeid,
143 int ndims,
const int *dim_sizes)
146 int stat = NC_check_id(ncid,&ncp);
148 return ncp->dispatch->insert_array_compound(ncid,xtype,name,offset,field_typeid,ndims,dim_sizes);
176 size_t *sizep,
size_t *nfieldsp)
288 char *name,
size_t *offsetp,
289 nc_type *field_typeidp,
int *ndimsp,
293 int stat = NC_check_id(ncid,&ncp);
295 return ncp->dispatch->inq_compound_field(ncid, xtype, fieldid,
296 name, offsetp, field_typeidp,
325 int stat = NC_check_id(ncid,&ncp);
327 return ncp->dispatch->inq_compound_field(ncid, xtype, fieldid,
328 name, NULL, NULL, NULL,
357 int stat = NC_check_id(ncid,&ncp);
359 return ncp->dispatch->inq_compound_field(ncid,xtype,fieldid,NULL,offsetp,NULL,NULL,NULL);
387 int stat = NC_check_id(ncid,&ncp);
389 return ncp->dispatch->inq_compound_field(ncid,xtype,fieldid,NULL,NULL,field_typeidp,NULL,NULL);
417 int stat = NC_check_id(ncid,&ncp);
419 return ncp->dispatch->inq_compound_field(ncid,xtype,fieldid,NULL,NULL,NULL,ndimsp,NULL);
447 int stat = NC_check_id(ncid, &ncp);
449 return ncp->dispatch->inq_compound_field(ncid, xtype, fieldid,
450 NULL, NULL, NULL, NULL,
479 int stat = NC_check_id(ncid,&ncp);
481 return ncp->dispatch->inq_compound_fieldindex(ncid,xtype,name,fieldidp);
int nc_inq_compound_fieldtype(int ncid, nc_type xtype, int fieldid, nc_type *field_typeidp)
Get information about one of the fields of a compound type.
int nc_inq_compound(int ncid, nc_type xtype, char *name, size_t *sizep, size_t *nfieldsp)
Learn about a compound type.
int nc_insert_compound(int ncid, nc_type xtype, const char *name, size_t offset, nc_type field_typeid)
Insert a named field into a compound type.
int nc_inq_compound_name(int ncid, nc_type xtype, char *name)
Learn the name of a compound type.
int nc_inq_compound_field(int ncid, nc_type xtype, int fieldid, char *name, size_t *offsetp, nc_type *field_typeidp, int *ndimsp, int *dim_sizesp)
Get information about one of the fields of a compound type.
int nc_inq_compound_fielddim_sizes(int ncid, nc_type xtype, int fieldid, int *dim_sizesp)
Get information about one of the fields of a compound type.
int nc_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp)
Create a compound type.
int nc_inq_compound_fieldindex(int ncid, nc_type xtype, const char *name, int *fieldidp)
Learn the Index of a Named Field in a Compound Type.
int nc_inq_compound_fieldndims(int ncid, nc_type xtype, int fieldid, int *ndimsp)
Get information about one of the fields of a compound type.
int nc_inq_compound_nfields(int ncid, nc_type xtype, size_t *nfieldsp)
Learn the number of fields in a compound type.
int nc_insert_array_compound(int ncid, nc_type xtype, const char *name, size_t offset, nc_type field_typeid, int ndims, const int *dim_sizes)
Insert a named array field into a compound type.
int nc_inq_compound_fieldoffset(int ncid, nc_type xtype, int fieldid, size_t *offsetp)
Get information about one of the fields of a compound type.
int nc_inq_compound_fieldname(int ncid, nc_type xtype, int fieldid, char *name)
Get information about one of the fields of a compound type.
int nc_inq_compound_size(int ncid, nc_type xtype, size_t *sizep)
Learn the size of a compound type.
EXTERNL int nc_inq_user_type(int ncid, nc_type xtype, char *name, size_t *size, nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
Learn about a user defined type.
#define NC_EBADTYPE
Not a netcdf data type.
#define NC_COMPOUND
compound types
#define NC_NOERR
No Error.
int nc_type
The nc_type type is just an int.