[ncl-talk] re-order array by time dimension

Andrew Kren - NOAA Affiliate andrew.kren at noaa.gov
Thu May 4 08:05:59 MDT 2017


Dear ncl-talk,

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 (
https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort_n.shtml),
but for some reason I can't find out how to re-order my temperature and
moisture data along the time dimension.

My temperature and moisture data has format of (time, level). Any help is
much appreciated, and attached is my ncl script.

Thanks,

-- 
Andrew Kren, PhD
Research Scientist I, Global Observing Systems Analysis (GOSA) Group
NOAA ESRL Global Systems Division (Rm 3C515)
325 Broadway, Boulder, CO 80305
(303) 497-5418
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170504/09dcc26f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compare_drops_hamsr_data.ncl
Type: application/octet-stream
Size: 40178 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170504/09dcc26f/attachment.obj 


More information about the ncl-talk mailing list