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 Phil, Sorry to take so long to respond to your question: > As it happens the bug is in the cxx library. I looked at version 4.2.1 > of this and it seems like the ncVar::put method has been replaced with > ncVar::putVar, which takes different parameter types. Is this correct? > It looks like the bug doen't exist in ncVar::putVar, but I would need to > do a fair chunk of code rewriting to use the new interface. > Unfortunately I'm not likely to get chance to try to build this any time > soon as there is no support for a build system I can use for VS. Last > time I tried I got nowhere fast. There are actually 2 incompatible versions of the netCDF C++ library, an old "legacy" version that didn't use namespaces, exceptions, or templates, and a new netCDF-4 version that makes use of modern C++ features. The latter version was contributed by a user (Lynton Appel), and its changed API is intentional. The only release on GitHub is netcdf-cxx4 4.2.1. The legacy version, which is no longer maintained but still builds OK as far as I know id available from our Downloads page as Legacy NetCDF-3 C++ Source Code targball (.tar.gz) ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx-4.2.tar.gz --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: QRZ-612301 Department: Support netCDF Priority: Normal Status: Closed