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.
Netcdf (including fortran) can read a subset of hdf5 files that were not created by the netcdf-c library. As a rule of thumb, you cannot write to an hdf5 file not created by netcdf library. There may be occasional exceptions, but it would be hard to characterize them. So, if you need to do this, then you need to use nccopy to take the hdf5 file as input and write a legitimate netcdf-4 file as output. Basically, this command nccopy -k 4 file.h5 file.nc where file.h5 is the input hdf5 file. You can then modify file.nc as you see fit. =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: NNZ-516447 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.