<div dir="ltr">Dear ncl-talk,<div><br></div><div>I have data on airborne temperature and moisture retrievals. This data comes in netcdf format with output every 1-2 seconds. The data is binned into hourly netcdf files. I read in the data using addfiles so that I can store all of it together instead of looping over each one. I want to compare and average this data around the time of a dropsonde release. When I read in the data, the time dimension gets out of order and is not in increasing time. I have tried to do qsort and dim_pqsort_n in conjunction with example 3 here (<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort_n.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort_n.shtml</a>), but for some reason I can&#39;t find out how to re-order my temperature and moisture data along the time dimension.</div><div><br></div><div>My temperature and moisture data has format of (time, level). Any help is much appreciated, and attached is my ncl script.</div><div><br></div><div>Thanks,<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren, PhD<br>
Research Scientist I, Global Observing Systems Analysis (GOSA) Group<br>
NOAA ESRL Global Systems Division (Rm 3C515)<br>
325 Broadway, Boulder, CO 80305<br>
<a href="tel:%28303%29%20497-5418" value="+13034975847" target="_blank">(303) 497-5418</a><span><font color="#888888"><br>
</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>