<html><head></head><body><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div>Dear Dennis</div><div>Thank you so much for your nice reply.</div><div>As you said I've encountered abnormally size before in ncl-6.4. However in ncl6.5 I encountered addition problem and in this email I mean this new problem (may bug in ncl6.5). It seems ncl6.5 <span><span style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;">reset wrong date/time. For example I have "<span>0103-01-01 00:00:00</span>" instead of "<span>2018-01-01 07:00:00</span>" for "<span>Date     Time</span>".</span></span></div><div><span><span style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><br></span></span></div><div><span><span style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;">Sincerely</span></span></div><div><span><span style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;">Ehsan</span></span></div><div id="yahoo_quoted_5602988886" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Thursday, August 23, 2018, 2:58:34 AM GMT+4:30, Dennis Shea <shea@ucar.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv8857175338"><div><div dir="ltr"><div>This [netCDF-4 file size] has been discussed in ncl-talk before. Please search the archives. <br clear="none">--<br clear="none"></div>It has to do with the netCDF-4 '<b>chunk size</b>' used by NCL.  A JIRA ticket has been opened.<br clear="none"><br clear="none"><div>NCAR Command Language / <b>Defect NCL-2757</b><br clear="none"><b>NetCDF-4 file with unlimited time dimension size has abnormally large size </b><br clear="none"><br clear="none"></div><div>You can change the chunk size: see<br clear="none"></div><div><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Document/Functions/Built-in/filechunkdimdef.shtml"><b>http://www.ncl.ucar.edu/Docume nt/Functions/Built-in/filechun kdimdef.shtml</b></a><br clear="none"><br clear="none"></div><div>You may have to experimet.<br clear="none"></div><div>======<b><br clear="none"></b></div><div><b>I suggest trying just writing netCDF-3 [the default]<br clear="none"></b><br clear="none"></div><div>Good luck<br clear="none"><br clear="none"></div><div><b></b></div></div><div class="yiv8857175338gmail_extra"><br clear="none"><div class="yiv8857175338gmail_quote">On Tue, Aug 21, 2018 at 8:37 AM, Ehsan Taghizadeh <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:ehsantaghizadeh@yahoo.com" target="_blank" href="mailto:ehsantaghizadeh@yahoo.com">ehsantaghizadeh@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv8857175338gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv8857175338yqt1203703943" id="yiv8857175338yqt61587"><div><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div id="yiv8857175338m_250345269006029381ydpe2faddayiv1850764250"><div><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div>Hi,</div><div>I used attached script (<span>prc_sum_write.ncl</span>) <span><span style="color:rgb(0,0,0);font-family:old times, serif;font-size:16px;">which has been provided by ncl-talk </span></span>to sum precipitation in different time steps. In ncl-6.5 I encountered following message:</div><div>    <span style="background-color:rgb(253,248,105);">ncclose: ncid 131072: NetCDF: Can't open HDF5 attribute</span><br clear="none"></div><div>It seems the script does summation correctly, however reset wrong date/time! (cdoout6.5.dat in attached files)</div><div>The script works correctly in ncl-6.4; however the problem with ncl-6.4 was about following line:</div><div><span><span style="color:rgb(0,0,0);font-family:old times, serif;font-size:16px;">    <span style="background-color:rgb(253,248,105);">filedimdef(fo,"time",-1,True)      ; make time UNLIMITED</span></span></span><br clear="none"></div><div><span><span style="color:rgb(0,0,0);font-family:old times, serif;font-size:16px;"><span><span style="color:rgb(0,0,0);font-family:old times, serif;font-size:16px;">which produced a much bigger size output. Same is true in ncl-6.5 which the output without above line will have 755 KB size and the output with above line will have 24.0 MB. However the date/time in output file for ncl-6.4 are correct (cdoout6.4.dat in attached files). I also attached output files from both version of ncl in small size (commented <span><span style="color:rgb(0,0,0);">filedimdef(fo,"time",-1,True)</span></span>) .</span></span><br clear="none"></span></span></div><div><span><span style="color:rgb(0,0,0);font-family:old times, serif;font-size:16px;"><span><span style="color:rgb(0,0,0);font-family:old times, serif;font-size:16px;">Should I use ncl-6.4 with this script or I did something wrong? I'll be thankful for any help.</span></span></span></span></div><div><span><span style="color:rgb(0,0,0);font-family:old times, serif;font-size:16px;"><span><span style="color:rgb(0,0,0);font-family:old times, serif;font-size:16px;"><br clear="none"></span></span></span></span></div><div><br clear="none"></div><div>Sincerely</div><span class="yiv8857175338HOEnZb"><font color="#888888"></font></span><div>Ehsan</div><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"></div></div></div></div></div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div></div>
            </div>
        </div></div></body></html>