NetCDF  4.3.3.1
 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 
45 int nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
46 {
47  NC* ncp;
48  int stat = NC_check_id(ncid,&ncp);
49  if(stat != NC_NOERR) return stat;
50  return ncp->dispatch->inq_ncid(ncid,name,grp_ncid);
51 }
52 
53 int nc_inq_grps(int ncid, int *numgrps, int *ncids)
54 {
55  NC* ncp;
56  int stat = NC_check_id(ncid,&ncp);
57  if(stat != NC_NOERR) return stat;
58  return ncp->dispatch->inq_grps(ncid,numgrps,ncids);
59 }
60 
61 int nc_inq_grpname(int ncid, char *name)
62 {
63  NC* ncp;
64  int stat = NC_check_id(ncid,&ncp);
65  if(stat != NC_NOERR) return stat;
66  return ncp->dispatch->inq_grpname(ncid,name);
67 }
68 
69 int nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
70 {
71  NC* ncp;
72  int stat = NC_check_id(ncid,&ncp);
73  if(stat != NC_NOERR) return stat;
74  return ncp->dispatch->inq_grpname_full(ncid,lenp,full_name);
75 }
76 
77 int nc_inq_grpname_len(int ncid, size_t *lenp)
78 {
79  int stat = nc_inq_grpname_full(ncid,lenp,NULL);
80  return stat;
81 }
82 
83 int nc_inq_grp_parent(int ncid, int *parent_ncid)
84 {
85  NC* ncp;
86  int stat = NC_check_id(ncid,&ncp);
87  if(stat != NC_NOERR) return stat;
88  return ncp->dispatch->inq_grp_parent(ncid,parent_ncid);
89 }
90 
94 int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
95 {
96  return nc_inq_ncid(ncid,grp_name,grp_ncid);
97 }
98 
99 int nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
100 {
101  NC* ncp;
102  int stat = NC_check_id(ncid,&ncp);
103  if(stat != NC_NOERR) return stat;
104  return ncp->dispatch->inq_grp_full_ncid(ncid,full_name,grp_ncid);
105 }
106 
107 int nc_inq_varids(int ncid, int *nvars, int *varids)
108 {
109  NC* ncp;
110  int stat = NC_check_id(ncid,&ncp);
111  if(stat != NC_NOERR) return stat;
112  return ncp->dispatch->inq_varids(ncid,nvars,varids);
113 }
114 
115 int nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
116 {
117  NC* ncp;
118  int stat = NC_check_id(ncid,&ncp);
119  if(stat != NC_NOERR) return stat;
120  return ncp->dispatch->inq_dimids(ncid,ndims,dimids,include_parents);
121 }
122 
123 int nc_inq_typeids(int ncid, int *ntypes, int *typeids)
124 {
125  NC* ncp;
126  int stat = NC_check_id(ncid,&ncp);
127  if(stat != NC_NOERR) return stat;
128  return ncp->dispatch->inq_typeids(ncid,ntypes,typeids);
129 }
130 
131 int nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
132 {
133  NC* ncp;
134  int stat = NC_check_id(parent_ncid,&ncp);
135  if(stat != NC_NOERR) return stat;
136  return ncp->dispatch->def_grp(parent_ncid,name,new_ncid);
137 }
138 
139 int nc_rename_grp(int grpid, const char *name)
140 {
141  NC* ncp;
142  int stat = NC_check_id(grpid,&ncp);
143  if(stat != NC_NOERR) return stat;
144  return ncp->dispatch->rename_grp(grpid,name);
145 }
146 
147 int nc_show_metadata(int ncid)
148 {
149  NC* ncp;
150  int stat = NC_check_id(ncid,&ncp);
151  if(stat != NC_NOERR) return stat;
152  return ncp->dispatch->show_metadata(ncid);
153 }
154 
int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
This has same semantics as nc_inq_ncid.
Definition: dgroup.c:94
#define NC_NOERR
No Error.
Definition: netcdf.h:279

Return to the Main Unidata NetCDF page.
Generated on Mon Jul 13 2015 07:53:24 for NetCDF. NetCDF is a Unidata library.