<div dir="ltr">Hello,<br><div><br></div><div> I am trying to write out one variable in HDF5 format in an NCL script following the commands on the web page <a href="https://www.ncl.ucar.edu/Applications/hdf5.shtml">https://www.ncl.ucar.edu/Applications/hdf5.shtml</a>. Because the output data are calculated in the NCL script, I commented the three lines below. However, I got the error message "NclFileAddGrp: Old File Structure DO NOT Support Group." as follows. Could anyone indicate how to fix this error?</div><div><br></div><div> Thanks much,</div><div><br></div><div> Yi-Chih</div><div><br></div><div><br></div><div><div>fatal:["FileSupport.c":1638]:_NclFileAddGrp: Old File Structure DO NOT Support Group.</div><div>^Mfatal:["FileSupport.c":1638]:_NclFileAddGrp: Old File Structure DO NOT Support Group.<br></div><div>^Mfatal:["FileSupport.c":1638]:_NclFileAddGrp: Old File Structure DO NOT Support Group.<br></div><div>^Mfatal:["Execute.c":8128]:Execute: Error occurred at or near line 340 in file q_ln-ln_pre_q01.ncl<br></div></div><div><br></div><div>##########################################</div><div><div>;<span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px"> fn = "/Users/huangwei/myncl/nc4_work/wrtgroup/<a href="http://nc4uvt.nc">nc4uvt.nc</a>"</span></div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)">; fi = addfile(fn, "r")</pre></div><div>; fAtt@source_file = fn<br></div><div><br></div><div>########################################## as on the web page <a href="https://www.ncl.ucar.edu/Applications/hdf5.shtml">https://www.ncl.ucar.edu/Applications/hdf5.shtml</a></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:10pt;line-height:12pt">        Write HDF5 file with group:
</p><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:10pt;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;text-indent:0em"> setfileoption("nc", "FileStructure", "Advanced")
fn = "/Users/huangwei/myncl/nc4_work/wrtgroup/<a href="http://nc4uvt.nc">nc4uvt.nc</a>"
fi = addfile(fn, "r")
;printVarSummary(fi)
;print(fi)
time = fi->time
lev = fi->lev
lat = fi->lat
lon = fi->lon
t = fi->T
u = fi->U
v = fi->V
;printVarSummary(t)
;printVarSummary(u)
;printVarSummary(v)
;print("t(0,0,0,0) = " + t(0,0,0,0))
;print("u(0,1,1,1) = " + u(0,1,1,1))
;print("v(0,2,2,2) = " + v(0,2,2,2))
;print("t&lat(0) = " + t&lat(0))
;print("t@units = " + t@units)
;print("u@units = " + u@units)
;print("v@units = " + v@units)
;u1 = fi->U(::2)
;v1 = fi->V(3:121:3)
ntim = dimsizes(time)        get dimension sizes
nlev = dimsizes(lev)
nlat = dimsizes(lat)
nlon = dimsizes(lon)
;------------------------------------------------------------
setfileoption("h5", "FileStructure", "Advanced")
fon = "ncl_wrt_uvt.h5"
system("/bin/rm -f " + fon) ; remove if exists
fo = addfile(fon, "c")
;===================================================================
; explicitly declare file definition mode. Improve efficiency.
;===================================================================
;setfileoption(fo,"CompressionLevel", 6)
;setfileoption(fo,"CacheSize", 3200000)
;setfileoption(fo,"CacheNelems", 1027)
;setfileoption(fo,"CachePreemption", 0.25)
</pre><div>..............</div></pre></div></div>