<div dir="ltr"><div>Joe, that error comes out of the automatic aggregation feature of addfiles "cat" mode (concatenate). Addfiles also has a "join" mode which handles dimensions differently, and does not do coordinate aggregation. Read about that in function docs for addfiles and ListSetType. There are examples in both function docs. Will join mode work for your application?</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 23, 2022 at 1:01 PM Dennis Shea via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">x("time/record",[level, latitude,longitude)<br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%"><br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">I speculate that NCL's developers were trying to prevent a user from 'shooting themselves in the foot'</span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">I an not aware any option to disable this 'feature' of NCL<br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%"><br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">==================<br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%"><br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">***Possibly:*** Non-NCL<br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%"><br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%"><a href="https://code.mpimet.mpg.de/projects/cdo" target="_blank"><b>Climate Data Operators</b></a><br></span></span></span></div><div><a href="https://www.unidata.ucar.edu/software/netcdf/workshops/2012/third_party/CDO.html" target="_blank"><b><span><span style="box-sizing:border-box"><span style="font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">https://www.unidata.ucar.edu/software/netcdf/workshops/2012/third_party/CDO.html</span></span></span></b></a></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%"><br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">%> cdo cat *.nc <a href="http://out.nc" target="_blank">out.nc</a></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%"><br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">==========</span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%"><a href="https://nco.sourceforge.net/" target="_blank"><b>netCDF Operators</b></a><br></span></span></span></div><div><span><span style="box-sizing:border-box"><span style="font-weight:normal;font-style:normal;background-image:none;background-color:rgba(0,0,0,0);background-position:0% 0%">see <b>ncrcat </b>examples<br></span></span></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 22, 2022 at 3:26 PM Joseph Clark via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi NCL users,<br><br>I am using NCL version 6.3.0. I have a line like,<br></div><div><br></div><div><b>variable = ncfile[:]->varname</b><br></div><div><br></div><div>I get the following error,<br></div><div><br><b>warning:error attempting to fix non-monotonic aggregation variable<br><br></b></div><div>I understand exactly what the error is saying, but I do not want the concatenation to change the ordering of the leftmost dimension. It is the correct order. I know I could make a change to the netcdf files to have a time array and time unit that NCL understands is proper order.<u> However, it would be simplest if NCL did not "attempt to fix non-monotonic aggregation variable" opting instead to ignore what the order of the time array is. Is there a way to tell NCL to ignore the non-monotonicity? <br><br></u></div><div>Thanks!<br><br></div><div>Joe</div></div></blockquote></div>
</blockquote></div></div>