<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Does dim_pqsort do this?</div>
<div><br>
</div>
In my example, if I did x = dim_pqsort(precip, -2) , is x the indices of the sorted array (descending) that I could apply to the other variables to order them consistent with precip?
<div><br>
</div>
<div>thanks for the help.<br>
<div><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF595352" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> ncl-talk-bounces@ucar.edu [ncl-talk-bounces@ucar.edu] on behalf of Matthew Fearon [Matthew.Fearon@dri.edu]<br>
<b>Sent:</b> Wednesday, August 26, 2015 1:20 PM<br>
<b>To:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> [ncl-talk] sort multiple 1D vectors with a common timestamp according to one, without a loop<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Dear NCL users,
<div><br>
</div>
<div>Trying to sort multiple 1D vectors according to one primary vector. For example, I have temp, rh, wind, and precip as 1D vectors of the same length, and they corresponding in time. How can I sort precip descending and attached the corresponding temp, rh,
and wind to it, without a loop? </div>
<div><br>
</div>
<div>thanks,</div>
<div>Matt</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>