Hi Dave,<div><br></div>We would certainly appreciate these bug fixes.  On our end, Gerry is the appropriate point man for them.<div><br></div><div>Thanks,</div><div>Dusty<br> <div><div><div><br>On Monday, June 8, 2015, David Brown &lt;<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dustan and Gerry,<br>
This issue relating to writing a variable with chunking in an existing<br>
NetCDF4 file has been fixed. Also a secondary issue involving<br>
re-writing existing variable attributes has been addressed as well.<br>
Let us know if you need a version with these fixes and we will try to<br>
accommodate you as soon as possible.<br>
Thanks for letting us know of this problem.<br>
 -dave<br>
<br>
<br>
On Wed, Jun 3, 2015 at 8:50 AM, David Brown &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;dbrown@ucar.edu&#39;)">dbrown@ucar.edu</a>&gt; wrote:<br>
&gt; Hi Dustin and Gerry,<br>
&gt; I have confirmed there is a problem. It has been partially but not<br>
&gt; completely fixed in the development version of the code. I am looking<br>
&gt; into the remaining issue and will let you know when it has been fixed.<br>
&gt;  -dave<br>
&gt;<br>
&gt; On Tue, Jun 2, 2015 at 10:34 AM, Gerry Creager - NOAA Affiliate<br>
&gt; &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;gerry.creager@noaa.gov&#39;)">gerry.creager@noaa.gov</a>&gt; wrote:<br>
&gt;&gt; Additional information: If we do an addfile(&quot;&lt;filename&gt;&quot;,&quot;r&quot;), we can open<br>
&gt;&gt; and read the file. If we use &quot;w&quot;, well, we can open the file but assigning<br>
&gt;&gt; an existing variable to an internal variable fails on the assign (var =<br>
&gt;&gt; a-&gt;QRAIN). Of course, because it fails there, we can&#39;t see if it&#39;d also fail<br>
&gt;&gt; on write.<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; Gerry<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jun 1, 2015 at 7:15 PM, Gerry Creager - NOAA Affiliate<br>
&gt;&gt; &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;gerry.creager@noaa.gov&#39;)">gerry.creager@noaa.gov</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;ve started looking at this with Dusty. Appreciate any thought you might<br>
&gt;&gt;&gt; have as to why we&#39;re failing.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;ve uploaded the input file (wrfinput_d02) to the FTP incoming site. I&#39;m<br>
&gt;&gt;&gt; testing with the script:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; var = &quot;QRAIN&quot;<br>
&gt;&gt;&gt; print(var)<br>
&gt;&gt;&gt; a=addfile(&quot;<a href="http://wrfinput_d02.nc" target="_blank">wrfinput_d02.nc</a>&quot;, &quot;w&quot;)<br>
&gt;&gt;&gt; var_orig=a-&gt;QRAIN<br>
&gt;&gt;&gt; print(var_orig)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The result looks like:gerry@loki:~/NEWSe/NCL&gt; ncl test.ncl<br>
&gt;&gt;&gt;  Copyright (C) 1995-2015 - All Rights Reserved<br>
&gt;&gt;&gt;  University Corporation for Atmospheric Research<br>
&gt;&gt;&gt;  NCAR Command Language Version 6.3.0<br>
&gt;&gt;&gt;  The use of this software is governed by a License Agreement.<br>
&gt;&gt;&gt;  See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Variable: var<br>
&gt;&gt;&gt; Type: string<br>
&gt;&gt;&gt; Total Size: 8 bytes<br>
&gt;&gt;&gt;             1 values<br>
&gt;&gt;&gt; Number of Dimensions: 1<br>
&gt;&gt;&gt; Dimensions and sizes: [1]<br>
&gt;&gt;&gt; Coordinates:<br>
&gt;&gt;&gt; (0) QRAIN<br>
&gt;&gt;&gt; fatal:[&quot;NclNetCDF4.c&quot;:3073]:NclNetCDF4.c: Error in nc_def_var_chunking in<br>
&gt;&gt;&gt; file (<a href="http://wrfinput_d02.nc" target="_blank">wrfinput_d02.nc</a>) for writing, at line: 3073<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; line 3074 of NclNetCDF4.c: NetCDF: Attempt to define var properties, like<br>
&gt;&gt;&gt; deflate, after enddef.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, May 29, 2015 at 8:54 PM, Dustan Wheatley - NOAA Affiliate<br>
&gt;&gt;&gt; &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;dustan.wheatley@noaa.gov&#39;)">dustan.wheatley@noaa.gov</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am trying to overwrite a netcdf4 file analogous to what is shown at<br>
&gt;&gt;&gt;&gt; <a href="http://www.ncl.ucar.edu/Applications/change_netCDF.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/change_netCDF.shtml</a>.  In the attached<br>
&gt;&gt;&gt;&gt; ncl script, I open the file to be modified at line 35 and attempt the<br>
&gt;&gt;&gt;&gt; modification at line 73 (with a lot of calculations in between).  While I<br>
&gt;&gt;&gt;&gt; have double-checked that the modified field (var_mod) has the same<br>
&gt;&gt;&gt;&gt; dimensionality as the original variable (QRAIN), I am still get a<br>
&gt;&gt;&gt;&gt; segmentation fault/core dump.  Never had this problem when I tried to<br>
&gt;&gt;&gt;&gt; manipulate netcdf3 files.  Could it possibly be related to the netcdf4<br>
&gt;&gt;&gt;&gt; compression?  It’s possible I may be trying to do something that’s no longer<br>
&gt;&gt;&gt;&gt; possible.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks in advance for any suggestions.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -Dusty Wheatley<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; ncl-talk mailing list<br>
&gt;&gt;&gt;&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;ncl-talk@ucar.edu&#39;)">ncl-talk@ucar.edu</a><br>
&gt;&gt;&gt;&gt; List instructions, subscriber options, unsubscribe:<br>
&gt;&gt;&gt;&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Gerry Creager<br>
&gt;&gt;&gt; NSSL/CIMMS<br>
&gt;&gt;&gt; 405.325.6371<br>
&gt;&gt;&gt; ++++++++++++++++++++++<br>
&gt;&gt;&gt; “Big whorls have little whorls,<br>
&gt;&gt;&gt; That feed on their velocity;<br>
&gt;&gt;&gt; And little whorls have lesser whorls,<br>
&gt;&gt;&gt; And so on to viscosity.”<br>
&gt;&gt;&gt; Lewis Fry Richardson (1881-1953)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Gerry Creager<br>
&gt;&gt; NSSL/CIMMS<br>
&gt;&gt; 405.325.6371<br>
&gt;&gt; ++++++++++++++++++++++<br>
&gt;&gt; “Big whorls have little whorls,<br>
&gt;&gt; That feed on their velocity;<br>
&gt;&gt; And little whorls have lesser whorls,<br>
&gt;&gt; And so on to viscosity.”<br>
&gt;&gt; Lewis Fry Richardson (1881-1953)<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; ncl-talk mailing list<br>
&gt;&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;ncl-talk@ucar.edu&#39;)">ncl-talk@ucar.edu</a><br>
&gt;&gt; List instructions, subscriber options, unsubscribe:<br>
&gt;&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;&gt;<br>
</blockquote></div></div></div></div>