[ncl-talk] warning message "non-monotonic aggregation variable"

Dennis Shea shea at ucar.edu
Fri Aug 10 08:58:22 MDT 2018


ECMWF sets the time units relative to the first time step on *each* file.
Hence, it *changes from file to file*. This is why you get the messages.

Further, ECMWF *changes* the scale_factor and add offset for *each* file.

Recently, another user had a related issue with ECMWF files.

Hopefully, the following will work:

load "./addfiles_GetVarShort.ncl"

Replace the combination:
  Files       =    addfiles(myFiles,"r")
 and
  u_flt        =   short2flt(Files[0]->u)

With one line:

  u_flt = addfiles_GetVarShort(myFiles, "u")

----


On Fri, Aug 10, 2018 at 2:26 AM, Geeta Geeta <geetag54 at yahoo.com> wrote:

> hi all.
> I have to make 10 year climatology of wind field starting from monthly
> data. I am getting this message "*warning:error attempting to fix
> non-monotonic aggregation variable"*
>
> Checked the time variables, it looks fine to me.
>
> Below is the output from the code (attached).
>
> Variable: myFiles
> Type: string
> Total Size: 36 bytes
>             9 values
> Number of Dimensions: 1
> Dimensions and sizes: [9]
> Coordinates:
> (0) 2005.monthly.ua.nc
> (1) 2006.monthly.ua.nc
> (2) 2007.monthly.ua.nc
> (3) 2008.monthly.ua.nc
> (4) 2009.monthly.ua.nc
> (5) 2010.monthly.ua.nc
> (6) 2011.monthly.ua.nc
> (7) 2012.monthly.ua.nc
> (8) 2013.monthly.ua.nc
>
>
> Variable: NFiles
> Type: integer
> Total Size: 4 bytes
>             1 values
> Number of Dimensions: 1
> Dimensions and sizes: [1]
> Coordinates:
> (0) 9
>
>
> Variable: Lev
> Type: integer
> Total Size: 28 bytes
>             7 values
> Number of Dimensions: 1
> Dimensions and sizes: [level | 7]
> Coordinates:
>             level: [200..1000]
> Number Of Attributes: 2
>   units : millibars
>   long_name : pressure_level
> (0) 200
> (1) 300
> (2) 500
> (3) 700
> (4) 850
> (5) 925
> (6) 1000
> warning:error attempting to fix non-monotonic aggregation variable
> warning:error attempting to fix non-monotonic aggregation variable
> warning:error attempting to fix non-monotonic aggregation variable
>
>
> Variable: Time
> Type: double
> Total Size: 24 bytes
>             3 values
> Number of Dimensions: 1
> Dimensions and sizes: [3]
> Coordinates:
> Number Of Attributes: 1
>   calendar : gregorian
> (0) 2006030100
> (1) 2006040100
> (2) 2006050100
>
>
> Variable: Time
> Type: double
> Total Size: 24 bytes
>             3 values
> Number of Dimensions: 1
> Dimensions and sizes: [3]
> Coordinates:
> Number Of Attributes: 1
>   calendar : gregorian
> (0) 2007030100
> (1) 2007040100
> (2) 2007050100
>
>
> Variable: Time
> Type: double
> Total Size: 24 bytes
>             3 values
> Number of Dimensions: 1
> Dimensions and sizes: [3]
> Coordinates:
> Number Of Attributes: 1
>   calendar : gregorian
> (0) 2008030100
> (1) 2008040100
> (2) 2008050100
>
>
> Variable: Time
> Type: double
> Total Size: 24 bytes
>             3 values
> Number of Dimensions: 1
> Dimensions and sizes: [3]
> Coordinates:
> Number Of Attributes: 1
>   calendar : gregorian
> (0) 2009030100
> (1) 2009040100
> (2) 2009050100
>
>
> Variable: Time
> Type: double
> Total Size: 24 bytes
>             3 values
> Number of Dimensions: 1
> Dimensions and sizes: [3]
> Coordinates:
> Number Of Attributes: 1
>   calendar : gregorian
> (0) 2010030100
> (1) 2010040100
> (2) 2010050100
>
>
> Variable: Time
> Type: double
> Total Size: 24 bytes
>             3 values
> Number of Dimensions: 1
> Dimensions and sizes: [3]
> Coordinates:
> Number Of Attributes: 1
>   calendar : gregorian
> (0) 2011030100
> (1) 2011040100
> (2) 2011050100
>
>
> Variable: Time
> Type: double
> Total Size: 24 bytes
>             3 values
> Number of Dimensions: 1
> Dimensions and sizes: [3]
> Coordinates:
> Number Of Attributes: 1
>   calendar : gregorian
> (0) 2012030100
> (1) 2012040100
> (2) 2012050100
>
>
> Variable: Time
> Type: double
> Total Size: 24 bytes
>             3 values
> Number of Dimensions: 1
> Dimensions and sizes: [3]
> Coordinates:
> Number Of Attributes: 1
>   calendar : gregorian
> (0) 2013030100
> (1) 2013040100
> (2) 2013050100
>
>
> Geeta.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> 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/20180810/a13badd3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addfiles_GetVarShort.ncl
Type: application/octet-stream
Size: 2373 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180810/a13badd3/attachment.obj>


More information about the ncl-talk mailing list