comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: error with sort
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: error with sort [message #18450 is a reply to message #18447] Mon, 10 January 2000 00:00 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
"R.Bauer" wrote:
> SORT() is not platform independent!!!!!

So if all elements of the array are identical, you wish to maintain the
index order. How about this:

if (n_elements(uniq(arr)) eq 1) then $
idx = lindgen(n_elements(arr)) else $
idx = sort(arr)

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: help - sticks plots of u,v/speed direction??
Next Topic: Make TV a function of X?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 21:52:14 PDT 2025

Total time taken to generate the page: 1.83962 seconds