[ncl-talk] warning:error attempting to fix non-monotonic aggregation variable

Mary Haley haley at ucar.edu
Mon Nov 24 11:17:08 MST 2014


Chang,

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.

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.

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:

   f    = *addfiles* (fils, "r")
   *ListSetType*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/ListSetType.shtml> (f,
"join")

--Mary



On Sat, Nov 22, 2014 at 10:24 AM, Xi Chang <xi.chang01 at gmail.com> wrote:

> Hallo,
>
> I tried to combines some *nc files, they have the same size and dimensions.
> but why I got this error:
>
> *warning:error attempting to fix non-monotonic aggregation variable*
>
> *;=======*
>
> files = systemfunc("ls tem.tot.*.nc")
> f = addfiles(files,"r")
>
> var="mchi"
>
> X = f[:]->$var$ ; select variable
> printVarSummary (X)
>
> Thank you,
>
> Chang
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141124/aa2775a0/attachment.html 


More information about the ncl-talk mailing list