<div dir="ltr"><div class="gmail_default" style="font-size:small">Amit,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You are effectively trying to write a 16 GB file to the system.  It sounds like your system is not going to allow this for whatever reason; maybe you are running out of disk space.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">One other thing to try is to add a setfileoption call:</div><div class="gmail_default" style="font-size:small">







<p class=""><span class="">   <b>setfileoption</b>(&quot;nc&quot;,&quot;Format&quot;,&quot;LargeFile&quot;)</span></p><p class="">You need to do this before you call &quot;addfile&quot;.  I think I already mentioned this in a previous message.</p><p class="">--Mary</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 1, 2015 at 1:06 PM, amit timilsina <span dir="ltr">&lt;<a href="mailto:timilsinaamit87@huskers.unl.edu" target="_blank">timilsinaamit87@huskers.unl.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#333333;background-color:#ffffff;font-family:&#39;Times New Roman&#39;,Times,serif">
<p>Respected Mary,</p>
<p><br>
</p>
<p>I am using 6.3.0 version of NCL in 64 bit Mac. Here, I am trying to concatenate at least 30 years files (like 2006 to 2035) or 100 years if possible (each file on yearly basis and has size 168.2 MB). I have attached the syntax I have used.</p>
<p><br>
</p>
<p><br>
</p>
<p>Thank you</p><span class="">
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div>
<div style="font-size:12pt;color:#333333;background-color:#ffffff;font-family:&#39;Times New Roman&#39;,Times,serif">
<p><b><font color="#4ba524">Amit Prasad Timilsina</font></b></p>
<p><font color="#006fc9">PhD student</font></p>
<p><font color="#006fc9">School of Natural Resources,UNL</font></p>
<p><font color="#006fc9">243 Hardin Hall</font></p>
<p><font color="#006fc9">3310 Holdrege Street</font></p>
<p><font color="#006fc9">Lincoln, Nebraska</font></p>
</div>
</div>
<br>
<br>
</span><div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;<br>
<b>Sent:</b> Tuesday, December 1, 2015 10:15 AM<span class=""><br>
<b>To:</b> amit timilsina<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
</span><b>Subject:</b> Re: Joining large files using &quot;cat&quot; option</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div class="gmail_default" style="font-size:small">
<div class="gmail_default">Amit,</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">[Sorry, I forgot to cc ncl-talk on the previous message.]</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">We are a bit puzzled by the &quot;File too large&quot; error. We believe this is a UNIX error that is indicating your file is too large to be written on your system. </div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">Do you have some kind of quota limit on the size of files you can write? Or, are you by any chance running on a 32-bit system?</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">What is the size of &quot;pr&quot;?  You can do a &quot;printVarSummary&quot; on pr to get this information.</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">--Mary</div>
<div class="gmail_default"><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 30, 2015 at 12:27 PM, amit timilsina <span dir="ltr">
&lt;<a href="mailto:timilsinaamit87@huskers.unl.edu" target="_blank">timilsinaamit87@huskers.unl.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#333333;background-color:#ffffff;font-family:&#39;Times New Roman&#39;,Times,serif">
<p>Respected Mary,</p>
<p></p>
<p>Thank you very much. I tried to many files using &quot;cat&quot; option. I got error like &quot;File too large: error attempting to write variable (pr) to file (pr_day_CMCC-CM_rcp45_r1i1p1_20060101-20351231.nc)&quot;. It seems that there is a limitation on a number of files
 and files sizes. Is there any way to solve this problem? Thank you very much for your time.</p>
<p><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">
ncl 2&gt; f=addfiles(fils,&quot;r&quot;)</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">
ncl 3&gt; ListSetType(f,&quot;cat&quot;)</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">
ncl 4&gt; pr=f[:]-&gt;pr</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">
ncl 5&gt; ncdf=addfile(&quot;pr_day_CMCC-CM_rcp45_r1i1p1_20060101-20351231.nc&quot;,&quot;c&quot;)</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">
ncl 6&gt; filedimdef(ncdf,&quot;time&quot;,-1,True)</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">
ncl 7&gt; ncdf-&gt;pr=pr</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">
fatal:File too large: error attempting to write variable (pr) to file (pr_day_CMCC-CM_rcp45_r1i1p1_20060101-20351231.nc)</p>
<p></p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">
fatal:[&quot;Execute.c&quot;:8573]:Execute: Error occurred at or near line 7</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div>
<div style="font-size:12pt;color:#333333;background-color:#ffffff;font-family:&#39;Times New Roman&#39;,Times,serif">
<p><span style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">Amit Prasad Timilsina</span><br style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">
<span style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">PhD student</span><br style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">
<span style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">School of Natural Resources,UNL</span><br style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">
<span style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">243 Hardin Hall</span><br style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">
<span style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">3310 Holdrege Street</span><br style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">
<span style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;,Times,serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,NotoColorEmoji,&#39;Segoe UI Symbol&#39;,&#39;Android Emoji&#39;,EmojiSymbols">Lincoln, Nebraska</span><br>
</p>
<p><font color="#006fc9"></font></p>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;<br>
<b>Sent:</b> Monday, November 30, 2015 11:22 AM<br>
<b>To:</b> amit timilsina<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-talk] Error in joining files having</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Amit,</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">The error is telling you that your coordinate variable is non-monotonic.  In order to use &quot;cat&quot; mode to join a dimension, which is usually the time dimension, the time values must be monotonic. Also, I believe
 the time arrays must have the same units.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Please look at your &quot;time&quot; dimension on both files and make sure 1) they are monotonic, 2) they have the same units, and 3) the first time value of the second file is greater than the last time value of the
 first file.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">--Mary</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Nov 27, 2015 at 4:23 PM, amit timilsina <span dir="ltr">
&lt;<a href="mailto:timilsinaamit87@huskers.unl.edu" target="_blank">timilsinaamit87@huskers.unl.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Respected all,<br>
<br>
Is the warning &quot; warning:error attempting to fix non-monotonic aggregation variable&quot;  while joining files makes any differences? The first file has dimension size: 366x240X480 and second file have 365x240x480 or first-year data is leap year data. Even with
 using both non-leap year data, I found the similar problem. What is the reason for getting this problem and how can I solve it?<br>
<br>
ncl 0&gt; fils = (/&quot;pr_day_CMCC-CM_decadal2005_r1i2p1_20120101-20121231.nc&quot;,&quot;pr_day_CMCC-CM_decadal2005_r1i2p1_20130101-20131231.nc&quot;/)ncl 1&gt; f=addfiles(fils,&quot;r&quot;)<br>
ncl 2&gt; ListSetType(f,&quot;cat&quot;)<br>
ncl 3&gt; pr=f[:]-&gt;pr<br>
warning:error attempting to fix non-monotonic aggregation variable<br>
<br>
<br>
Thank you in advance.<br>
<br>
Amit Prasad Timilsina<br>
PhD student<br>
School of Natural Resources,UNL<br>
243 Hardin Hall<br>
3310 Holdrege Street<br>
Lincoln, Nebraska<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div>