netCDF  4.2.1.1
 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 
109 int
110 nc_def_dim(int ncid, const char *name, size_t len, int *idp)
111 {
112  NC* ncp;
113  int stat = NC_check_id(ncid, &ncp);
114  if(stat != NC_NOERR) return stat;
115  return ncp->dispatch->def_dim(ncid, name, len, idp);
116 }
117 
138 int
139 nc_inq_dimid(int ncid, const char *name, int *idp)
140 {
141  NC* ncp;
142  int stat = NC_check_id(ncid, &ncp);
143  if(stat != NC_NOERR) return stat;
144  return ncp->dispatch->inq_dimid(ncid,name,idp);
145 }
146 
201 int
202 nc_inq_dim(int ncid, int dimid, char *name, size_t *lenp)
203 {
204  NC* ncp;
205  int stat = NC_check_id(ncid, &ncp);
206  if(stat != NC_NOERR) return stat;
207  return ncp->dispatch->inq_dim(ncid,dimid,name,lenp);
208 }
209 
262 int
263 nc_rename_dim(int ncid, int dimid, const char *name)
264 {
265  NC* ncp;
266  int stat = NC_check_id(ncid, &ncp);
267  if(stat != NC_NOERR) return stat;
268  return ncp->dispatch->rename_dim(ncid,dimid,name);
269 }
270 
292 int
293 nc_inq_ndims(int ncid, int *ndimsp)
294 {
295  NC* ncp;
296  int stat = NC_check_id(ncid, &ncp);
297  if(stat != NC_NOERR) return stat;
298  if(ndimsp == NULL) return NC_NOERR;
299  return ncp->dispatch->inq(ncid,ndimsp,NULL,NULL,NULL);
300 }
301 
322 int
323 nc_inq_unlimdim(int ncid, int *unlimdimidp)
324 {
325  NC* ncp;
326  int stat = NC_check_id(ncid, &ncp);
327  if(stat != NC_NOERR) return stat;
328  return ncp->dispatch->inq_unlimdim(ncid,unlimdimidp);
329 }
330 
380 int
381 nc_inq_dimname(int ncid, int dimid, char *name)
382 {
383  NC* ncp;
384  int stat = NC_check_id(ncid, &ncp);
385  if(stat != NC_NOERR) return stat;
386  if(name == NULL) return NC_NOERR;
387  return ncp->dispatch->inq_dim(ncid,dimid,name,NULL);
388 }
389 
436 int
437 nc_inq_dimlen(int ncid, int dimid, size_t *lenp)
438 {
439  NC* ncp;
440  int stat = NC_check_id(ncid, &ncp);
441  if(stat != NC_NOERR) return stat;
442  if(lenp == NULL) return NC_NOERR;
443  return ncp->dispatch->inq_dim(ncid,dimid,NULL,lenp);
444 }

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