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

Home » Public Forums » archive » Re: sorting array column/rowwise
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: sorting array column/rowwise [message #31321] Thu, 04 July 2002 07:47 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Marc Schellens wrote:
>
> Paul Sorenson wrote:
>> Have you looked at the SORT routine? The following example sorts by the
>> first column of a.
>>
>> IDL> a = randomu(seed, 4, 4)
>> IDL> print, a[*, sort(a[0, *])]
>> 0.303753 0.933435 0.723623 0.636985
>> 0.535081 0.804346 0.313356 0.620587
>> 0.574060 0.790996 0.821293 0.671731
>> 0.799868 0.0666149 0.123060 0.281230
>
> Thanks Paul,
>
> but I wanted to sort each column individually.
> Any guesses?
>
> marc


Dear Marc

I believe this routine from our library is the right one
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/download/n_sort.tar.gz


regards
Reimar
--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gamma correction
Next Topic: write_jpeg and TVRD()

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

Current Time: Wed Oct 08 15:08:01 PDT 2025

Total time taken to generate the page: 0.00456 seconds