NetCDF  4.4.1
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
dgroup.c
Go to the documentation of this file.
1 
7 #include "ncdispatch.h"
8 
48 int nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
49 {
50  NC* ncp;
51  int stat = NC_check_id(ncid,&ncp);
52  if(stat != NC_NOERR) return stat;
53  return ncp->dispatch->inq_ncid(ncid,name,grp_ncid);
54 }
55 
56 int nc_inq_grps(int ncid, int *numgrps, int *ncids)
57 {
58  NC* ncp;
59  int stat = NC_check_id(ncid,&ncp);
60  if(stat != NC_NOERR) return stat;
61  return ncp->dispatch->inq_grps(ncid,numgrps,ncids);
62 }
63 
64 int nc_inq_grpname(int ncid, char *name)
65 {
66  NC* ncp;
67  int stat = NC_check_id(ncid,&ncp);
68  if(stat != NC_NOERR) return stat;
69  return ncp->dispatch->inq_grpname(ncid,name);
70 }
71 
72 int nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
73 {
74  NC* ncp;
75  int stat = NC_check_id(ncid,&ncp);
76  if(stat != NC_NOERR) return stat;
77  return ncp->dispatch->inq_grpname_full(ncid,lenp,full_name);
78 }
79 
80 int nc_inq_grpname_len(int ncid, size_t *lenp)
81 {
82  int stat = nc_inq_grpname_full(ncid,lenp,NULL);
83  return stat;
84 }
85 
86 int nc_inq_grp_parent(int ncid, int *parent_ncid)
87 {
88  NC* ncp;
89  int stat = NC_check_id(ncid,&ncp);
90  if(stat != NC_NOERR) return stat;
91  return ncp->dispatch->inq_grp_parent(ncid,parent_ncid);
92 }
93 
97 int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
98 {
99  return nc_inq_ncid(ncid,grp_name,grp_ncid);
100 }
101 
102 int nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
103 {
104  NC* ncp;
105  int stat = NC_check_id(ncid,&ncp);
106  if(stat != NC_NOERR) return stat;
107  return ncp->dispatch->inq_grp_full_ncid(ncid,full_name,grp_ncid);
108 }
109 
110 int nc_inq_varids(int ncid, int *nvars, int *varids)
111 {
112  NC* ncp;
113  int stat = NC_check_id(ncid,&ncp);
114  if(stat != NC_NOERR) return stat;
115  return ncp->dispatch->inq_varids(ncid,nvars,varids);
116 }
117 
118 int nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
119 {
120  NC* ncp;
121  int stat = NC_check_id(ncid,&ncp);
122  if(stat != NC_NOERR) return stat;
123  return ncp->dispatch->inq_dimids(ncid,ndims,dimids,include_parents);
124 }
125 
126 int nc_inq_typeids(int ncid, int *ntypes, int *typeids)
127 {
128  NC* ncp;
129  int stat = NC_check_id(ncid,&ncp);
130  if(stat != NC_NOERR) return stat;
131  return ncp->dispatch->inq_typeids(ncid,ntypes,typeids);
132 }
133 
134 int nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
135 {
136  NC* ncp;
137  int stat = NC_check_id(parent_ncid,&ncp);
138  if(stat != NC_NOERR) return stat;
139  return ncp->dispatch->def_grp(parent_ncid,name,new_ncid);
140 }
141 
142 int nc_rename_grp(int grpid, const char *name)
143 {
144  NC* ncp;
145  int stat = NC_check_id(grpid,&ncp);
146  if(stat != NC_NOERR) return stat;
147  return ncp->dispatch->rename_grp(grpid,name);
148 }
149 
150 int nc_show_metadata(int ncid)
151 {
152  NC* ncp;
153  int stat = NC_check_id(ncid,&ncp);
154  if(stat != NC_NOERR) return stat;
155  return ncp->dispatch->show_metadata(ncid);
156 }
157 
int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
This has same semantics as nc_inq_ncid.
Definition: dgroup.c:97
#define NC_NOERR
No Error.
Definition: netcdf.h:315

Return to the Main Unidata NetCDF page.
Generated on Tue Aug 15 2017 19:04:58 for NetCDF. NetCDF is a Unidata library.