[ncl-talk] warning message "non-monotonic aggregation variable"
Geeta Geeta
geetag54 at yahoo.com
Fri Aug 10 10:25:22 MDT 2018
Thanks a lot Dennis Sir. I have added this code as u have told, but the figure so generated looks very strange. It is still giving that warning. I dont know what is going wrong.
I have one doubt, NOW after loading the code load "./addfiles_GetVarShort.ncl" followed by adding the lines, addfiles_GetVarShort(myFiles, "v") for extracting the variables, The TIME VAriable has 30 steps unlike previously (3, for march, april and MAy). That means all the 10 years u and V variables are taken care by this script. So I NEED NOT run the do loop (which was meant for number of years) now.??? Kindly clarify.
Variable: myFilesType: stringTotal Size: 40 bytes 10 valuesNumber of Dimensions: 1Dimensions and sizes: [10]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(9) 2014.monthly.ua.nc
Variable: NFilesType: integerTotal Size: 4 bytes 1 valuesNumber of Dimensions: 1Dimensions and sizes: [1]Coordinates: (0) 10
Variable: LevType: integerTotal Size: 28 bytes 7 valuesNumber of Dimensions: 1Dimensions 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) 1000warning:error attempting to fix non-monotonic aggregation variablewarning:error attempting to fix non-monotonic aggregation variablewarning:error attempting to fix non-monotonic aggregation variable
Variable: u_fltType: floatTotal Size: 97171200 bytes 24292800 valuesNumber of Dimensions: 4Dimensions and sizes: [time | 30] x [level | 7] x [latitude | 241] x [longitude | 480]Coordinates: time: [921840..1002192] level: [200..1000] latitude: [90..-90] longitude: [ 0..359.25]Number Of Attributes: 2 NCL_tag : addfiles_GetVarShort _FillValue : 1e+20warning:error attempting to fix non-monotonic aggregation variable
Variable: v_fltType: floatTotal Size: 97171200 bytes 24292800 valuesNumber of Dimensions: 4Dimensions and sizes: [time | 30] x [level | 7] x [latitude | 241] x [longitude | 480]Coordinates: time: [921840..1002192] level: [200..1000] latitude: [90..-90] longitude: [ 0..359.25]Number Of Attributes: 2 NCL_tag : addfiles_GetVarShort _FillValue : 1e+20warning:error attempting to fix non-monotonic aggregation variable
kindly guide Geeta.
On Friday, 10 August 2018 8:28 PM, Dennis Shea <shea at ucar.edu> wrote:
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: myFilesType: stringTotal Size: 36 bytes 9 valuesNumber of Dimensions: 1Dimensions 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: NFilesType: integerTotal Size: 4 bytes 1 valuesNumber of Dimensions: 1Dimensions and sizes: [1]Coordinates: (0) 9
Variable: LevType: integerTotal Size: 28 bytes 7 valuesNumber of Dimensions: 1Dimensions 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) 1000warning:error attempting to fix non-monotonic aggregation variablewarning:error attempting to fix non-monotonic aggregation variablewarning:error attempting to fix non-monotonic aggregation variable
Variable: TimeType: doubleTotal Size: 24 bytes 3 valuesNumber of Dimensions: 1Dimensions and sizes: [3]Coordinates: Number Of Attributes: 1 calendar : gregorian(0) 2006030100(1) 2006040100(2) 2006050100
Variable: TimeType: doubleTotal Size: 24 bytes 3 valuesNumber of Dimensions: 1Dimensions and sizes: [3]Coordinates: Number Of Attributes: 1 calendar : gregorian(0) 2007030100(1) 2007040100(2) 2007050100
Variable: TimeType: doubleTotal Size: 24 bytes 3 valuesNumber of Dimensions: 1Dimensions and sizes: [3]Coordinates: Number Of Attributes: 1 calendar : gregorian(0) 2008030100(1) 2008040100(2) 2008050100
Variable: TimeType: doubleTotal Size: 24 bytes 3 valuesNumber of Dimensions: 1Dimensions and sizes: [3]Coordinates: Number Of Attributes: 1 calendar : gregorian(0) 2009030100(1) 2009040100(2) 2009050100
Variable: TimeType: doubleTotal Size: 24 bytes 3 valuesNumber of Dimensions: 1Dimensions and sizes: [3]Coordinates: Number Of Attributes: 1 calendar : gregorian(0) 2010030100(1) 2010040100(2) 2010050100
Variable: TimeType: doubleTotal Size: 24 bytes 3 valuesNumber of Dimensions: 1Dimensions and sizes: [3]Coordinates: Number Of Attributes: 1 calendar : gregorian(0) 2011030100(1) 2011040100(2) 2011050100
Variable: TimeType: doubleTotal Size: 24 bytes 3 valuesNumber of Dimensions: 1Dimensions and sizes: [3]Coordinates: Number Of Attributes: 1 calendar : gregorian(0) 2012030100(1) 2012040100(2) 2012050100
Variable: TimeType: doubleTotal Size: 24 bytes 3 valuesNumber of Dimensions: 1Dimensions 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/8814eaf3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flow.topo.v1.000003.png
Type: image/png
Size: 208389 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180810/8814eaf3/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecmf.monthly.ua.topo.v1.ncl
Type: application/octet-stream
Size: 10242 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180810/8814eaf3/attachment-0001.obj>
More information about the ncl-talk
mailing list