NetCDF  4.7.4
datt.c
Go to the documentation of this file.
1 /*Copyright 2018 University Corporation for Atmospheric
2  Research/Unidata. See copyright file for more info. */
8 #include "ncdispatch.h"
9  /* Start doxygen member group. */
53 
110 int
111 nc_rename_att(int ncid, int varid, const char *name, const char *newname)
112 {
113  NC* ncp;
114  int stat = NC_check_id(ncid, &ncp);
115  if(stat != NC_NOERR) return stat;
116  TRACE(nc_rename_att);
117  return ncp->dispatch->rename_att(ncid, varid, name, newname);
118 }
119 
174 int
175 nc_del_att(int ncid, int varid, const char *name)
176 {
177  NC* ncp;
178  int stat = NC_check_id(ncid, &ncp);
179  if(stat != NC_NOERR) return stat;
180  TRACE(nc_del_att);
181  stat = ncp->dispatch->del_att(ncid, varid, name);
182  return stat;
183 } /* End doxygen member group. */
185 
int nc_rename_att(int ncid, int varid, const char *name, const char *newname)
Rename an attribute.
Definition: datt.c:111
int nc_del_att(int ncid, int varid, const char *name)
Delete an attribute.
Definition: datt.c:175
#define NC_NOERR
No Error.
Definition: netcdf.h:329

Return to the Main Unidata NetCDF page.
Generated on Tue Nov 17 2020 14:09:02 for NetCDF. NetCDF is a Unidata library.