NCL support team,
This program results in a seg fault error on program exit, after
attempting to overwrite some global attributes in a Netcdf-4 classic
file with HDF5 compression. Note that all three global attributes
exist previously in the target file, before running the test program.
After the error, the target file is corrupted. This error is
strangely sensitive to the number and string lengths of the attributes
to be written. Can you please tell me what the problem is? Thank
you.
begin
outfile = "out.nc"
system ("cat ozone.master.nc > " + outfile) ; create fresh writable copy
out = addfile (outfile, "w")
out@last_update = systemfunc ("date")
out@last_update_program = "demo.global-atts.ncl version 2013-apr-01"
out@last_update_source_file = "ei.ozone.1979010106.nc"
print ("Update complete.")
end
I get the same results with NCL versions 6.0.0 and 6.1.2. My system
is Mac OS 10.8.3 on a 64-bit Intel Mac desktop. Here is the console
output:
mac56:~/ncl/bugs/3-atts/401i 491> ncl demo.global-atts.ncl
Copyright (C) 1995-2013 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.1.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
(0) Update complete.
Segmentation fault
mac56:~/ncl/bugs/3-atts/401i 492> ls -trgo
total 44136
-r--r--r-- 1 11294147 Apr 1 17:14 ozone.master.nc
-rw-r--r-- 1 570 Apr 1 19:51 demo.global-atts.ncl
-rw-r--r-- 1 11294201 Apr 1 20:16 out.nc
mac56:~/ncl/bugs/3-atts/401i 493> ncdump -k ozone.master.nc
netCDF-4 classic model
mac56:~/ncl/bugs/3-atts/401i 494> ncdump -k out.nc
ncdump: out.nc: NetCDF: Can't open HDF5 attribute
mac56:~/ncl/bugs/3-atts/401i 495> uname -a
Darwin mac56 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10
PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
I uploaded the program and original Netcdf file (11 Mbytes) to
ftp.cgd.ucar.edu/incoming, as
"demo.global-atts.dave_allured.0401.zip". The original Netcdf file
was also made by NCL 6.1.2 and a different script. I can also send a
copy of the generating script and its input file, if you need it.
Please let me know. Thanks for taking a look at this.
--Dave A.
NOAA/PSD/CIRES Climate Analysis Branch
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Apr 1 20:41:32 2013
This archive was generated by hypermail 2.1.8 : Tue Apr 02 2013 - 21:23:48 MDT