<div dir="ltr"><h3><span style="font-weight:normal">Hello,</span></h3><h3><span style="font-weight:normal">NCL 6.1.2 was released February 7, 2013 ... </span><span style="font-weight:normal">4.5 years ago</span></h3><p><font size="2"><b>*Significant* </b>upgrades have been made to NCL&#39;s  internal data structures. These are needed to handle features of HDF5.</font></p><p><font size="2">Please upgrade to NCL 6.4.0 or, possibly, (beta) NCL 6.5.0 <br></font></p><p><font size="2"><a href="http://www.ncl.ucar.edu/Download/">http://www.ncl.ucar.edu/Download/</a></font></p><p><font size="2"><a href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a><br></font></p><p><font size="2">Cheers<br></font></p><p><font size="2"></font><br></p><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 15, 2017 at 5:32 PM, Yi-Chih Huang <span dir="ltr">&lt;<a href="mailto:dscpln@gmail.com" target="_blank">dscpln@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">David,<div><br></div><div>     I am working on Version 6.1.2.  I created one variable to output in my NCL script instead of the fn file.  Thus, I commented all the fn and fi below for consistency.  I got <span style="font-size:12.8px">the error message &quot;NclFileAddGrp: Old File Structure DO NOT Support Group&quot; over and over again and wonder how to fix this error?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">    Thanks,</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">                    Yi-Chih<br></span><div><br></div><div><div style="font-size:12.8px"><div>;<span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px"> fn = &quot;/Users/huangwei/myncl/nc4_wor<wbr>k/wrtgroup/<a href="http://nc4uvt.nc/" target="_blank">nc4uvt.nc</a>&quot;</span></div><span class="gmail-"><pre style="white-space:pre-wrap;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, &quot;r&quot;)</pre></span></div><div style="font-size:12.8px">;  fAtt@source_file   = fn</div></div></div><div style="font-size:12.8px"><br></div><div><div><span style="font-size:12.8px">; time = fi-&gt;time</span></div><span class="gmail-"><div><span style="font-size:12.8px">; lev = fi-&gt;lev</span></div><div><span style="font-size:12.8px">; lat = fi-&gt;lat</span></div><div><span style="font-size:12.8px">; lon = fi-&gt;lon</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">; t = fi-&gt;T</span></div><div><span style="font-size:12.8px">; u = fi-&gt;U</span></div><div><span style="font-size:12.8px">; v = fi-&gt;V</span></div><div style="font-size:12.8px"><br></div></span></div></div><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 16, 2017 at 3:09 AM, David Brown <span dir="ltr">&lt;<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Yi-Chih,<br>
<br>
I tried running the script you pointed to using NCL 6.4.0 and there<br>
were no errors. I am not sure what you mean<br>
by &quot;commented the three lines below&quot;. Which lines specifically are you<br>
referring to? Also which version of NCL are you running?<br>
 -dave<br>
<div><div class="gmail-m_-1927827234025671531h5"><br>
<br>
On Sat, Aug 12, 2017 at 3:10 AM, Yi-Chih Huang &lt;<a href="mailto:dscpln@gmail.com" target="_blank">dscpln@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt;     I am trying to write out one variable in HDF5 format in an NCL script<br>
&gt; following the commands on the web page<br>
&gt; <a href="https://www.ncl.ucar.edu/Applications/hdf5.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Appli<wbr>cations/hdf5.shtml</a>.  Because the output data<br>
&gt; are calculated in the NCL script, I commented the three lines below.<br>
&gt; However, I got the error message &quot;NclFileAddGrp: Old File Structure DO NOT<br>
&gt; Support Group.&quot; as follows.  Could anyone indicate how to fix this error?<br>
&gt;<br>
&gt;     Thanks much,<br>
&gt;<br>
&gt;                    Yi-Chih<br>
&gt;<br>
&gt;<br>
&gt; fatal:[&quot;FileSupport.c&quot;:1638]:_<wbr>NclFileAddGrp: Old File Structure DO NOT<br>
&gt; Support Group.<br>
&gt; ^Mfatal:[&quot;FileSupport.c&quot;:1638]<wbr>:_NclFileAddGrp: Old File Structure DO NOT<br>
&gt; Support Group.<br>
&gt; ^Mfatal:[&quot;FileSupport.c&quot;:1638]<wbr>:_NclFileAddGrp: Old File Structure DO NOT<br>
&gt; Support Group.<br>
&gt; ^Mfatal:[&quot;Execute.c&quot;:8128]:Exe<wbr>cute: Error occurred at or near line 340 in<br>
&gt; file q_ln-ln_pre_q01.ncl<br>
&gt;<br>
&gt; ##############################<wbr>############<br>
&gt; ; fn = &quot;/Users/huangwei/myncl/nc4_wor<wbr>k/wrtgroup/<a href="http://nc4uvt.nc" rel="noreferrer" target="_blank">nc4uvt.nc</a>&quot;<br>
&gt;<br>
&gt; ; fi = addfile(fn, &quot;r&quot;)<br>
&gt;<br>
&gt; ;  fAtt@source_file   = fn<br>
&gt;<br>
&gt; ##############################<wbr>############     as on the web page<br>
&gt; <a href="https://www.ncl.ucar.edu/Applications/hdf5.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Appli<wbr>cations/hdf5.shtml</a><br>
&gt;<br>
&gt;       Write HDF5 file with group:<br>
&gt;<br>
&gt;  setfileoption(&quot;nc&quot;, &quot;FileStructure&quot;, &quot;Advanced&quot;)<br>
&gt;<br>
&gt;  fn = &quot;/Users/huangwei/myncl/nc4_wor<wbr>k/wrtgroup/<a href="http://nc4uvt.nc" rel="noreferrer" target="_blank">nc4uvt.nc</a>&quot;<br>
&gt;<br>
&gt;  fi = addfile(fn, &quot;r&quot;)<br>
&gt;<br>
&gt; ;printVarSummary(fi)<br>
&gt; ;print(fi)<br>
&gt;<br>
&gt;  time = fi-&gt;time<br>
&gt;  lev = fi-&gt;lev<br>
&gt;  lat = fi-&gt;lat<br>
&gt;  lon = fi-&gt;lon<br>
&gt;<br>
&gt;  t = fi-&gt;T<br>
&gt;  u = fi-&gt;U<br>
&gt;  v = fi-&gt;V<br>
&gt;<br>
&gt; ;printVarSummary(t)<br>
&gt; ;printVarSummary(u)<br>
&gt; ;printVarSummary(v)<br>
&gt;<br>
&gt; ;print(&quot;t(0,0,0,0) = &quot; + t(0,0,0,0))<br>
&gt; ;print(&quot;u(0,1,1,1) = &quot; + u(0,1,1,1))<br>
&gt; ;print(&quot;v(0,2,2,2) = &quot; + v(0,2,2,2))<br>
&gt;<br>
&gt; ;print(&quot;t&amp;lat(0) = &quot; + t&amp;lat(0))<br>
&gt; ;print(&quot;t@units = &quot; + t@units)<br>
&gt; ;print(&quot;u@units = &quot; + u@units)<br>
&gt; ;print(&quot;v@units = &quot; + v@units)<br>
&gt;<br>
&gt; ;u1 = fi-&gt;U(::2)<br>
&gt; ;v1 = fi-&gt;V(3:121:3)<br>
&gt;<br>
&gt;  ntim  = dimsizes(time)       ; get dimension sizes<br>
&gt;  nlev  = dimsizes(lev)<br>
&gt;  nlat  = dimsizes(lat)<br>
&gt;  nlon  = dimsizes(lon)<br>
&gt;<br>
&gt; ;-----------------------------<wbr>------------------------------<wbr>-<br>
&gt;  setfileoption(&quot;h5&quot;, &quot;FileStructure&quot;, &quot;Advanced&quot;)<br>
&gt;<br>
&gt;  fon = &quot;ncl_wrt_uvt.h5&quot;<br>
&gt;  system(&quot;/bin/rm -f &quot; + fon) ; remove if exists<br>
&gt;  fo = addfile(fon, &quot;c&quot;)<br>
&gt;<br>
&gt; ;=============================<wbr>==============================<wbr>========<br>
&gt; ; explicitly declare file definition mode. Improve efficiency.<br>
&gt; ;=============================<wbr>==============================<wbr>========<br>
&gt; ;setfileoption(fo,&quot;Compression<wbr>Level&quot;, 6)<br>
&gt; ;setfileoption(fo,&quot;CacheSize&quot;, 3200000)<br>
&gt; ;setfileoption(fo,&quot;CacheNelems<wbr>&quot;, 1027)<br>
&gt; ;setfileoption(fo,&quot;CachePreemp<wbr>tion&quot;, 0.25)<br>
&gt;<br>
&gt; ..............<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; ncl-talk mailing list<br>
&gt; <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
&gt;<br>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div>