This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Junchang, > I'm learning the NetCDF4 C API. I found an omission error in the manual > netcdf-c.pdf: On page 114 when the nc_put_var API is described, the > manual says that "ncid NetCDF ID, from a previous call to nc open or nc > create". Acutally if the variable is defined under a group, ncid should > be the group ID. I wasted hours due to the use of file ID, before I > carefully read the sample program in the tutorial. Sorry for your wasted time and thanks for pointing out this error! We will correct it before the netCDF-4.2 release, and perhaps save many other users the time caused by this oversight. In explanation, the documentation was true for the netCDF-3 API, but not modified appropriately in the transition to netCDF-4. There are several places in the documentation where this must be fixed. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: YBS-812664 Department: Support netCDF Priority: Normal Status: Closed