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.
Dave, > Thanks for the quick response. > > On Sep 15, 1:55pm, Russ Rew wrote: > >> Unless you are using "ncdump -h" or "ncdump -c" (which specifies not to > >> print the data), I don't see what the problem is. If you'll tell me > >> what computer and OS you are using, maybe we can duplicate the problem > >> here. > >> Thanks. > > Sorry, I'm on an SGI with IRIX 5.3. That is bizarre that it works ... I can't duplicate the problem. I just tried compiling your example on tmp$ uname -a IRIX dana 5.3 11091811 IP20 mips using a newly built netcdf library and ncdump executable from the netcdf 2.3.2 distribution at ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.Z and everything seems to work as expected: tmp$ bin/ncdump foo.nc netcdf foo { dimensions: lat = 5 ; lon = 10 ; times = UNLIMITED ; // (1 currently) variables: double rh(times, lat, lon) ; data: rh = 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5 ; } Are you using something other than the standard C compiler that comes with IRIX 5.3, or do you have something set in your environment that might be relevant to duplicating the problem? If you still have the source directory in which you built netcdf, do things look OK when you run "make test" from the top-level netcdf src/ directory? I've appended what the output of "make test" should look like, modulo the different directory I'm working in. --Russ ______________________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu making `test' in directory /a/zero/home/russ/tmp/netcdf-232pl2/xdr ./xdrtest > xdrtest_out.new diff xdrtest_out.new testout.sav *** XDR passes formatted test *** cmp test.xdr test_xdr.sav *** XDR passes binary test *** returning to directory /a/zero/home/russ/tmp/netcdf-232pl2 making `test' in directory /a/zero/home/russ/tmp/netcdf-232pl2/libsrc ar rcuv libnetcdf.a array.o attr.o cdf.o dim.o file.o iarray.o error.o globdef.o putget.o putgetg.o sharray.o string.o var.o xdrposix.o s - creating archive symbol table. Wait... s - done cc -O cdftest.o libnetcdf.a -lsun -o cdftest ./cdftest > cdftest_out.new nccreate: filename "test.cdf": File exists trying again diff cdftest_out.new testout.sav *** netCDF passes formatted test *** cmp test.cdf test_cdf.sav *** netCDF passes binary test *** returning to directory /a/zero/home/russ/tmp/netcdf-232pl2 making `test' in directory /a/zero/home/russ/tmp/netcdf-232pl2/nctest cc -O varget.o vargetg.o varput.o varputg.o vardef.o vartests.o vputget.o vputgetg.o driver.o cdftests.o dimtests.o rec.o atttests.o misctest.o add.o error.o emalloc.o val.o slabs.o ../libsrc/libnetcdf.a -lsun -o nctest ./nctest *** Testing nccreate ... ok *** *** Testing ncopen ... ok *** *** Testing ncredef ... ok *** *** Testing ncendef ... ok *** *** Testing ncclose ... ok *** *** Testing ncinquire ... ok *** *** Testing ncsync ... ok *** *** Testing ncabort ... ok *** *** Testing ncdimdef ... ok *** *** Testing ncdimid ... ok *** *** Testing ncdiminq ... ok *** *** Testing ncdimrename ... ok *** *** Testing ncvardef ... ok *** *** Testing ncvarid ... ok *** *** Testing ncvarinq ... ok *** *** Testing ncvarput1 ... ok *** *** Testing ncvarget1 ... ok *** *** Testing ncvarput ... ok *** *** Testing ncvarget ... ok *** *** Testing ncvarputg ... ok *** *** Testing ncvargetg ... ok *** *** Testing ncrecinq ... ok *** *** Testing ncrecput ... ok *** *** Testing ncrecget ... ok *** *** Testing ncvarrename ... ok *** *** Testing ncattput ... ok *** *** Testing ncattinq ... ok *** *** Testing ncattget ... ok *** *** Testing ncattcopy ... ok *** *** Testing ncattname ... ok *** *** Testing ncattrename ... ok *** *** Testing ncattdel ... ok *** *** Testing nctypelen ... ok *** returning to directory /a/zero/home/russ/tmp/netcdf-232pl2 making `test' in directory /a/zero/home/russ/tmp/netcdf-232pl2/fortran ar rcuv ../libsrc/libnetcdf.a jackets.o s - creating archive symbol table. Wait... s - done f77 ftest.o -L../libsrc -lnetcdf -lsun -o ftest *** Testing nccre ... *** Testing ncddef ... *** Testing ncvdef ... *** Testing ncapt, ncaptc ... *** Testing ncclos ... *** Testing ncvpt1 ... *** Testing ncvgt1 ... *** Testing ncvpt ... *** Testing ncopn, ncinq, ncdinq, ncvinq, ncanam, ncainq ... *** Testing ncvgt, ncvgtc ... *** Testing ncagt, ncagtc ... *** Testing ncredf, ncdren, ncvren, ncaren, ncendf ... *** Testing ncacpy ... *** Testing ncadel ... returning to directory /a/zero/home/russ/tmp/netcdf-232pl2 making `test' in directory /a/zero/home/russ/tmp/netcdf-232pl2/ncdump ../ncgen/ncgen -o test0.nc -n test0.cdl ./ncdump test0.nc > test1.cdl ../ncgen/ncgen -o test1.nc -n test1.cdl ./ncdump -n test0 test1.nc > test2.cdl *** ncdump test successful *** returning to directory /a/zero/home/russ/tmp/netcdf-232pl2 making `test' in directory /a/zero/home/russ/tmp/netcdf-232pl2/ncgen ./ncgen -b test1.cdl ../ncdump/ncdump test1.nc > test2.cdl *** ncgen -b test successful *** ./ctest0 # tests `-c' option, creates ctest0.nc ../ncdump/ncdump -n test1 ctest0.nc > ctest1.cdl *** ncgen -c test successful *** `ftest0' is up to date. *** ncgen -f test successful *** returning to directory /a/zero/home/russ/tmp/netcdf-232pl2