<div dir="ltr"><div class="gmail_default" style="font-size:small">Ehsan,</div><div class="gmail_default" style="font-size:small"><br></div>Can you provide the original <div class="gmail_default" style="font-size:small;display:inline"> </div><a href="http://era5precjan2018t6s1_12.nc">era5precjan2018t6s1_12.nc</a> file?<div class="gmail_default" style="font-size:small;display:inline"> If it's not too large, but too large for email, then you can use ftp:</div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline"><a href="http://www.ncl.ucar.edu/ftp_files.shtml">http://www.ncl.ucar.edu/ftp_files.shtml</a></div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">Thanks,</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">--Mary</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 22, 2018 at 11:30 PM, Ehsan Taghizadeh <span dir="ltr"><<a href="mailto:ehsantaghizadeh@yahoo.com" target="_blank">ehsantaghizadeh@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><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><span class="HOEnZb"><font color="#888888"><div><span><span style="font-family:"bookman old style","new york",times,serif;font-size:16px">Ehsan</span></span></div></font></span><div><div class="h5"><div id="m_1264673581374263580yahoo_quoted_5602988886" class="m_1264673581374263580yahoo_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 <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="m_1264673581374263580yiv8857175338"><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" href="http://www.ncl.ucar.edu/Document/Functions/Built-in/filechunkdimdef.shtml" target="_blank"><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="m_1264673581374263580yiv8857175338gmail_extra"><br clear="none"><div class="m_1264673581374263580yiv8857175338gmail_quote">On Tue, Aug 21, 2018 at 8:37 AM, Ehsan Taghizadeh <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:ehsantaghizadeh@yahoo.com" target="_blank">ehsantaghizadeh@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="m_1264673581374263580yiv8857175338gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_1264673581374263580yiv8857175338yqt1203703943" id="m_1264673581374263580yiv8857175338yqt61587"><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="m_1264673581374263580yiv8857175338m_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="m_1264673581374263580yiv8857175338HOEnZb"><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" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">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></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>