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 Simon, > I think I found an error in the Unidata NetCDF User's Guide for C > (http://my.unidata.ucar.edu/content/software/netcdf/guidec/guidec-1.html) > > I might be wrong - I've just started using this stuff, but in > section 8.2 (Create an Attribute), I think the line in the example > has 1 too many parameters - the parameter "NC_CHAR" shouldn't be > there: > > status = nc_put_att_text (ncid, NC_GLOBAL, "title", NC_CHAR, strlen(title), > title) > > Nice guide by the way - very nice to use. Thanks for reporting the error. You're right and it's now fixed in the online version and in version 3.6.0 that will be available soon. --Russ