netCDF  4.2.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
dgroup.c
Go to the documentation of this file.
1 
7 #include "ncdispatch.h"
8 
72 int
73 nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
74 {
75  NC* ncp;
76  int stat = NC_check_id(ncid,&ncp);
77  if(stat != NC_NOERR) return stat;
78  return ncp->dispatch->inq_ncid(ncid,name,grp_ncid);
79 }
80 
81 int
82 nc_inq_grps(int ncid, int *numgrps, int *ncids)
83 {
84  NC* ncp;
85  int stat = NC_check_id(ncid,&ncp);
86  if(stat != NC_NOERR) return stat;
87  return ncp->dispatch->inq_grps(ncid,numgrps,ncids);
88 }
89 
90 int
91 nc_inq_grpname(int ncid, char *name)
92 {
93  NC* ncp;
94  int stat = NC_check_id(ncid,&ncp);
95  if(stat != NC_NOERR) return stat;
96  return ncp->dispatch->inq_grpname(ncid,name);
97 }
98 
99 int
100 nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
101 {
102  NC* ncp;
103  int stat = NC_check_id(ncid,&ncp);
104  if(stat != NC_NOERR) return stat;
105  return ncp->dispatch->inq_grpname_full(ncid,lenp,full_name);
106 }
107 
108 int
109 nc_inq_grpname_len(int ncid, size_t *lenp)
110 {
111  int stat = nc_inq_grpname_full(ncid,lenp,NULL);
112  return stat;
113 }
114 
115 int
116 nc_inq_grp_parent(int ncid, int *parent_ncid)
117 {
118  NC* ncp;
119  int stat = NC_check_id(ncid,&ncp);
120  if(stat != NC_NOERR) return stat;
121  return ncp->dispatch->inq_grp_parent(ncid,parent_ncid);
122 }
123 
124 /* This has same semantics as nc_inq_ncid */
125 int
126 nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
127 {
128  return nc_inq_ncid(ncid,grp_name,grp_ncid);
129 }
130 
131 int
132 nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
133 {
134  NC* ncp;
135  int stat = NC_check_id(ncid,&ncp);
136  if(stat != NC_NOERR) return stat;
137  return ncp->dispatch->inq_grp_full_ncid(ncid,full_name,grp_ncid);
138 }
139 
140 int
141 nc_inq_varids(int ncid, int *nvars, int *varids)
142 {
143  NC* ncp;
144  int stat = NC_check_id(ncid,&ncp);
145  if(stat != NC_NOERR) return stat;
146  return ncp->dispatch->inq_varids(ncid,nvars,varids);
147 }
148 
149 int
150 nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
151 {
152  NC* ncp;
153  int stat = NC_check_id(ncid,&ncp);
154  if(stat != NC_NOERR) return stat;
155  return ncp->dispatch->inq_dimids(ncid,ndims,dimids,include_parents);
156 }
157 
158 int
159 nc_inq_typeids(int ncid, int *ntypes, int *typeids)
160 {
161  NC* ncp;
162  int stat = NC_check_id(ncid,&ncp);
163  if(stat != NC_NOERR) return stat;
164  return ncp->dispatch->inq_typeids(ncid,ntypes,typeids);
165 }
166 
167 int
168 nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
169 {
170  NC* ncp;
171  int stat = NC_check_id(parent_ncid,&ncp);
172  if(stat != NC_NOERR) return stat;
173  return ncp->dispatch->def_grp(parent_ncid,name,new_ncid);
174 }
175 
176 
177 
178 int
179 nc_show_metadata(int ncid)
180 {
181  NC* ncp;
182  int stat = NC_check_id(ncid,&ncp);
183  if(stat != NC_NOERR) return stat;
184  return ncp->dispatch->show_metadata(ncid);
185 }
186 

Generated on Wed Aug 22 2012 14:39:31 for netCDF. NetCDF is a Unidata library.