<div dir="ltr"><div class="gmail_default" style="font-size:small">Chang,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is telling you that the leftmost dimension, possibly &quot;time&quot;, is not either strictly increasing, or strictly decreasing, which is a requirement for coordinate arrays.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Perhaps you mean to &quot;join&quot; the files rather than &quot;cat&quot; them?  &quot;Cat&quot; is the default, which means it tries to concatenate the leftmost dimensions of all the files, which requires that this dimension be monotonic.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Do you actually want to create a *new* dimension, for example, if you have 10 files, then you would get a new leftmost dimension of size 10? If so, you need to call &quot;ListSetType&quot; to indicate you want &quot;join&quot; mode, after you call &quot;addfiles&quot;, but before you read any variables off the files:</div><div class="gmail_default" style="font-size:small">







<p class=""><font face="courier new, monospace">   f    = <b>addfiles</b> (fils, &quot;r&quot;)  <br></font><font face="courier new, monospace">   <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/ListSetType.shtml"><span class=""><b>ListSetType</b></span></a> (f, &quot;join&quot;)   </font>    </p><p class="">--Mary</p><p class=""><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 22, 2014 at 10:24 AM, Xi Chang <span dir="ltr">&lt;<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</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">Hallo,<div><br></div><div>I tried to combines some *nc files, they have the same size and dimensions.</div><div>but why I got this error:</div><div><br></div><div><b>warning:error attempting to fix non-monotonic aggregation variable</b><br></div><div><b><br></b></div><div><b>;=======</b></div><div><b><br></b></div><div><div>files = systemfunc(&quot;ls tem.tot.*.nc&quot;)</div><div>f = addfiles(files,&quot;r&quot;)</div><div><br></div><div>var=&quot;mchi&quot;</div><div><br></div><div>X = f[:]-&gt;$var$ ; select variable</div><div>printVarSummary (X)</div><div><br></div><div>Thank you,</div><div><br></div><div>Chang</div></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>