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 - SOLVED!
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 - SOLVED! [message #20488 is a reply to message #20487] Fri, 30 June 2000 00:00 Go to previous message
Simon de Vet is currently offline  Simon de Vet
Messages: 36
Registered: May 2000
Member
I've managed to solve my problem.

First I defined the array to remove all the negative values:

nozero = where( pem1(flight, *, 6) gt 0.0 and pem1(flight, *, 9) gt 0.0)

Then I sorted the filter array by the size of the y-coordinates, and
applied it to the arrays:

x-coordinates:
pem1(flight, nozero(sort(pem1(flight, nozero, 6))), 9)

y-coordinates:
pem1(flight, nozero(sort(pem1(flight, nozero, 6))), 6)


The problem lay in where I was sorting. I was originally trying to sort the
array data itself, instead of trying to sort the index I had already
created.

Yay!


Simon
[Message index]
 
Read Message
Read Message
Previous Topic: Re: include file?
Next Topic: Re: Sort and Where

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

Current Time: Sun Oct 12 11:21:05 PDT 2025

Total time taken to generate the page: 0.69595 seconds