NetCDF  4.3.2
 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 
77 int
78 nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
79 {
80  NC* ncp;
81  int stat = NC_check_id(ncid,&ncp);
82  if(stat != NC_NOERR) return stat;
83  return ncp->dispatch->inq_ncid(ncid,name,grp_ncid);
84 }
85 
86 int
87 nc_inq_grps(int ncid, int *numgrps, int *ncids)
88 {
89  NC* ncp;
90  int stat = NC_check_id(ncid,&ncp);
91  if(stat != NC_NOERR) return stat;
92  return ncp->dispatch->inq_grps(ncid,numgrps,ncids);
93 }
94 
95 int
96 nc_inq_grpname(int ncid, char *name)
97 {
98  NC* ncp;
99  int stat = NC_check_id(ncid,&ncp);
100  if(stat != NC_NOERR) return stat;
101  return ncp->dispatch->inq_grpname(ncid,name);
102 }
103 
104 int
105 nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
106 {
107  NC* ncp;
108  int stat = NC_check_id(ncid,&ncp);
109  if(stat != NC_NOERR) return stat;
110  return ncp->dispatch->inq_grpname_full(ncid,lenp,full_name);
111 }
112 
113 int
114 nc_inq_grpname_len(int ncid, size_t *lenp)
115 {
116  int stat = nc_inq_grpname_full(ncid,lenp,NULL);
117  return stat;
118 }
119 
120 int
121 nc_inq_grp_parent(int ncid, int *parent_ncid)
122 {
123  NC* ncp;
124  int stat = NC_check_id(ncid,&ncp);
125  if(stat != NC_NOERR) return stat;
126  return ncp->dispatch->inq_grp_parent(ncid,parent_ncid);
127 }
128 
129 /* This has same semantics as nc_inq_ncid */
130 int
131 nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
132 {
133  return nc_inq_ncid(ncid,grp_name,grp_ncid);
134 }
135 
136 int
137 nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
138 {
139  NC* ncp;
140  int stat = NC_check_id(ncid,&ncp);
141  if(stat != NC_NOERR) return stat;
142  return ncp->dispatch->inq_grp_full_ncid(ncid,full_name,grp_ncid);
143 }
144 
145 int
146 nc_inq_varids(int ncid, int *nvars, int *varids)
147 {
148  NC* ncp;
149  int stat = NC_check_id(ncid,&ncp);
150  if(stat != NC_NOERR) return stat;
151  return ncp->dispatch->inq_varids(ncid,nvars,varids);
152 }
153 
154 int
155 nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
156 {
157  NC* ncp;
158  int stat = NC_check_id(ncid,&ncp);
159  if(stat != NC_NOERR) return stat;
160  return ncp->dispatch->inq_dimids(ncid,ndims,dimids,include_parents);
161 }
162 
163 int
164 nc_inq_typeids(int ncid, int *ntypes, int *typeids)
165 {
166  NC* ncp;
167  int stat = NC_check_id(ncid,&ncp);
168  if(stat != NC_NOERR) return stat;
169  return ncp->dispatch->inq_typeids(ncid,ntypes,typeids);
170 }
171 
172 int
173 nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
174 {
175  NC* ncp;
176  int stat = NC_check_id(parent_ncid,&ncp);
177  if(stat != NC_NOERR) return stat;
178  return ncp->dispatch->def_grp(parent_ncid,name,new_ncid);
179 }
180 
181 int
182 nc_rename_grp(int grpid, const char *name)
183 {
184  NC* ncp;
185  int stat = NC_check_id(grpid,&ncp);
186  if(stat != NC_NOERR) return stat;
187  return ncp->dispatch->rename_grp(grpid,name);
188 }
189 
190 int
191 nc_show_metadata(int ncid)
192 {
193  NC* ncp;
194  int stat = NC_check_id(ncid,&ncp);
195  if(stat != NC_NOERR) return stat;
196  return ncp->dispatch->show_metadata(ncid);
197 }
198 
#define NC_NOERR
No Error.
Definition: netcdf.h:278

Return to the Main Unidata NetCDF page.
Generated on Sun Nov 23 2014 16:20:09 for NetCDF. NetCDF is a Unidata library.