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.
This is easy to do since the netcdf-3 API is a subset of netcdf-4. So, the only change you should need to make is to add the NF_NETCDF4 flag to the second argument to the nf_open call (or nf90_open or whatever one you are using). If you want to convert an existing netcdf-3 file to netcdfd-4, then you can use the nccopy command (part of the netcdf-C code base, which you will have already installed). =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: IHW-370124 Department: Support netCDF Priority: Normal Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.