NetCDF  4.3.2
ddim.c
Go to the documentation of this file.
00001 
00010 #include "ncdispatch.h"
00011 
00066 int
00067 nc_def_dim(int ncid, const char *name, size_t len, int *idp)
00068 {
00069     NC* ncp;
00070     int stat = NC_check_id(ncid, &ncp);
00071     if(stat != NC_NOERR) return stat;
00072     return ncp->dispatch->def_dim(ncid, name, len, idp);
00073 }
00074 
00095 int
00096 nc_inq_dimid(int ncid, const char *name, int *idp)
00097 {
00098     NC* ncp;
00099     int stat = NC_check_id(ncid, &ncp);
00100     if(stat != NC_NOERR) return stat;
00101     return ncp->dispatch->inq_dimid(ncid,name,idp);
00102 }
00103 
00158 int
00159 nc_inq_dim(int ncid, int dimid, char *name, size_t *lenp)
00160 {
00161     NC* ncp;
00162     int stat = NC_check_id(ncid, &ncp);
00163     if(stat != NC_NOERR) return stat;
00164     return ncp->dispatch->inq_dim(ncid,dimid,name,lenp);
00165 }
00166 
00219 int
00220 nc_rename_dim(int ncid, int dimid, const char *name)
00221 {
00222     NC* ncp;
00223     int stat = NC_check_id(ncid, &ncp);
00224     if(stat != NC_NOERR) return stat;
00225     return ncp->dispatch->rename_dim(ncid,dimid,name);
00226 }
00227 
00249 int
00250 nc_inq_ndims(int ncid, int *ndimsp)
00251 {
00252     NC* ncp;
00253     int stat = NC_check_id(ncid, &ncp);
00254     if(stat != NC_NOERR) return stat;
00255     if(ndimsp == NULL) return NC_NOERR;
00256     return ncp->dispatch->inq(ncid,ndimsp,NULL,NULL,NULL);
00257 }
00258 
00279 int
00280 nc_inq_unlimdim(int ncid, int *unlimdimidp)
00281 {
00282     NC* ncp;
00283     int stat = NC_check_id(ncid, &ncp);
00284     if(stat != NC_NOERR) return stat;
00285     return ncp->dispatch->inq_unlimdim(ncid,unlimdimidp);
00286 }
00287 
00337 int
00338 nc_inq_dimname(int ncid, int dimid, char *name)
00339 {
00340     NC* ncp;
00341     int stat = NC_check_id(ncid, &ncp);
00342     if(stat != NC_NOERR) return stat;
00343     if(name == NULL) return NC_NOERR;
00344     return ncp->dispatch->inq_dim(ncid,dimid,name,NULL);
00345 }
00346 
00393 int
00394 nc_inq_dimlen(int ncid, int dimid, size_t *lenp)
00395 {
00396     NC* ncp;
00397     int stat = NC_check_id(ncid, &ncp);
00398     if(stat != NC_NOERR) return stat;
00399     if(lenp == NULL) return NC_NOERR;
00400     return ncp->dispatch->inq_dim(ncid,dimid,NULL,lenp);
00401 }
 All Data Structures Files Functions Variables Typedefs Defines