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.
Kent, > Any news about this issue? I had closed the issue after I had sent you the attached response last September, indicating I couldn't duplicate the symptoms. I have just tried again, and still can't duplicate the symptoms on my Linux Fedora 14 desktop platform, but I can duplicate the problem on OSX 10.9. This is strange, because I don't see why the bug would be platform specific. Did you only see the original problem on OSX? --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: KES-987451 Department: Support netCDF Priority: Normal Status: Closed
Posted on: 20130917.1406 MDT Hi Kent, > Although this issue is confirmed by nccopy, it may be something worth to > take an action on how to handle the dimension scale inside the netCDF-4 > library. > > netCDF-4 version: netCDF-4.3.0 > > 1) The netCDF-3 file: > > ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/ymuqun/temp/netcdf-4-dim-scale-issue/outfile-n3-GLAH.gz OK, I got it, thanks. > 2) nccopy error-message: > > ./nccopy -k 4 -d 1 outfile-n3-GLAH outfile-n4conv-GLAH > > You should see the following error message: > "NetCDF: HDF error Location: file nccopy.c; line 1437" > The line is NC_CHECK(nc_enddef(ogrp)); I can't duplicate the error with any of the versions of nccopy I have built, including 4.3.0, 4.2.1.1, or 4.1.3. In each case, nccopy completes with no error message, and the size of the resulting output file is as expected, for example: $ NCDIR=/machine/russ/installs/nc430 ; ${NCDIR}/bin/nccopy -k 4 -d 1 GLAH.nc GLAH.nc4 ; ls -l GLAH.nc GLAH.nc4 -rw-rw-r-- 1 russ ustaff 225935448 Sep 17 13:36 GLAH.nc -rw-rw-r-- 1 russ ustaff 36385878 Sep 17 14:00 GLAH.nc4 Is it possible the error message only appears when built with some non-default configure flag, that the version of nccopy you are using is older (unfortunately it doesn't have a --version flag), or that the error only occurs when built with a newer version of HDF5 than 1.8.11? --Russ