<div dir="ltr"><div>This [netCDF-4 file size] has been discussed in ncl-talk before. Please search the archives. <br>--<br></div>It has to do with the netCDF-4 '<b>chunk size</b>' used by NCL.  A JIRA ticket has been opened.<br><br><div>NCAR Command Language / <b>Defect NCL-2757</b><br><b>NetCDF-4 file with unlimited time dimension size has abnormally large size </b><br><br></div><div>You can change the chunk size: see<br></div><div><br><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/filechunkdimdef.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Docume<wbr>nt/Functions/Built-in/filechun<wbr>kdimdef.shtml</b></a><br><br></div><div>You may have to experimet.<br></div><div>======<b><br></b></div><div><b>I suggest trying just writing netCDF-3 [the default]<br></b><br></div><div>Good luck<br><br></div><div><b></b></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 21, 2018 at 8:37 AM, 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 style="font-family:bookman old style,new york,times,serif;font-size:16px"><div id="m_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></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></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);font-family:"old times",serif;font-size:16px;background-color:rgb(253,248,105)">filedimdef(fo,"time",-1,True)</span></span>)<wbr>.</span></span><br></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></span></span></span></span></div><div><br></div><div>Sincerely</div><span class="HOEnZb"><font color="#888888"><div>Ehsan</div><div style="font-family:bookman old style,new york,times,serif;font-size:16px"></div></font></span></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>