<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 "time", 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 "join" the files rather than "cat" them? "Cat" 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 "ListSetType" to indicate you want "join" mode, after you call "addfiles", 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, "r") <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, "join") </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"><<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</a>></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("ls tem.tot.*.nc")</div><div>f = addfiles(files,"r")</div><div><br></div><div>var="mchi"</div><div><br></div><div>X = f[:]->$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>