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

Home » Public Forums » archive » Re: Sort and Where
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: Sort and Where [message #20497 is a reply to message #20489] Thu, 29 June 2000 00:00 Go to previous message
Ivan Zimine is currently offline  Ivan Zimine
Messages: 40
Registered: February 1999
Member
Simon de Vet wrote:
>
> I assumed that this would sort both in the order of the y-coordinates.
> However, when I use these values, my negative values reappear.

'sort' does not sort input array but returns subscipts for sorting

IDL> x = [3,1,4,5]
IDL> print, sort(x)
1 0 2 3
; does input array have 0?
IDL> print, x(sort(x))
1 3 4 5

hope this helps
Ivan

--
Ivan Zimine | ivan.zimine@physics.unige.ch
Dpt. of Radiology | (+41 22) 372 70 70
Geneva University Hospitals |
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Sort and Where - SOLVED!
Next Topic: Re: colorbars and contour levels

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

Current Time: Sat Nov 29 05:55:51 PST 2025

Total time taken to generate the page: 5.93250 seconds