netCDF  4.3.0
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
ddim.c
Go to the documentation of this file.
1 
10 #include "ncdispatch.h"
11 
114 int
115 nc_def_dim(int ncid, const char *name, size_t len, int *idp)
116 {
117  NC* ncp;
118  int stat = NC_check_id(ncid, &ncp);
119  if(stat != NC_NOERR) return stat;
120  return ncp->dispatch->def_dim(ncid, name, len, idp);
121 }
122 
143 int
144 nc_inq_dimid(int ncid, const char *name, int *idp)
145 {
146  NC* ncp;
147  int stat = NC_check_id(ncid, &ncp);
148  if(stat != NC_NOERR) return stat;
149  return ncp->dispatch->inq_dimid(ncid,name,idp);
150 }
151 
206 int
207 nc_inq_dim(int ncid, int dimid, char *name, size_t *lenp)
208 {
209  NC* ncp;
210  int stat = NC_check_id(ncid, &ncp);
211  if(stat != NC_NOERR) return stat;
212  return ncp->dispatch->inq_dim(ncid,dimid,name,lenp);
213 }
214 
267 int
268 nc_rename_dim(int ncid, int dimid, const char *name)
269 {
270  NC* ncp;
271  int stat = NC_check_id(ncid, &ncp);
272  if(stat != NC_NOERR) return stat;
273  return ncp->dispatch->rename_dim(ncid,dimid,name);
274 }
275 
297 int
298 nc_inq_ndims(int ncid, int *ndimsp)
299 {
300  NC* ncp;
301  int stat = NC_check_id(ncid, &ncp);
302  if(stat != NC_NOERR) return stat;
303  if(ndimsp == NULL) return NC_NOERR;
304  return ncp->dispatch->inq(ncid,ndimsp,NULL,NULL,NULL);
305 }
306 
327 int
328 nc_inq_unlimdim(int ncid, int *unlimdimidp)
329 {
330  NC* ncp;
331  int stat = NC_check_id(ncid, &ncp);
332  if(stat != NC_NOERR) return stat;
333  return ncp->dispatch->inq_unlimdim(ncid,unlimdimidp);
334 }
335 
385 int
386 nc_inq_dimname(int ncid, int dimid, char *name)
387 {
388  NC* ncp;
389  int stat = NC_check_id(ncid, &ncp);
390  if(stat != NC_NOERR) return stat;
391  if(name == NULL) return NC_NOERR;
392  return ncp->dispatch->inq_dim(ncid,dimid,name,NULL);
393 }
394 
441 int
442 nc_inq_dimlen(int ncid, int dimid, size_t *lenp)
443 {
444  NC* ncp;
445  int stat = NC_check_id(ncid, &ncp);
446  if(stat != NC_NOERR) return stat;
447  if(lenp == NULL) return NC_NOERR;
448  return ncp->dispatch->inq_dim(ncid,dimid,NULL,lenp);
449 }

Generated on Tue Jul 9 2013 19:18:10 for netCDF. NetCDF is a Unidata library.