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

Home » Public Forums » archive » Re: Filtering data in multidimensional arrays
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: Filtering data in multidimensional arrays [message #20316 is a reply to message #20301] Thu, 01 June 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Simon de Vet (simon@mathstat.dal.ca) writes:

> David Fanning wrote:
>
>> Oh, the WHERE function applies equally well to multidimensional
>> arrays. And the beauty of it is, you don't have to understand
>> it. You just have to use it. :-)
>
> I'm clearly not capable of doing even that! :)
>
> I've followed the instructions on your site, but the results are not what I
> expected. Since the flights run from 3-19, I would expect that index to look
> like 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19. However, the actual index
> looks like this, but repeated many times, ending at #15. Weird...
>
> If I try to use my indices in the plotting, (ie: plot, pem1(flightindex,
> ptsindex, 4), pem1(flightindex,ptsindex,3) ) IDL hangs. After about 5 minutes
> I cancel the process. Without culling negative values the process takes about
> 1.5s, at most.
>
> Any idea what could be going wrong? Am I misunderstanding the usage of these
> indices?

Humm, I'd have to see a little code to see what it is exactly you
are trying to do, but I have no time to look at it today. This is
a pretty small array, however. Why don't you just break the problem
up into (20?) pieces that you know how to deal with and do it in
a loop? It may cost you 0.000348302 seconds of processing time,
but it would be finished by the end of lunch today. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Color printing to a Lexmark printer
Next Topic: Re: CALL_EXTERNAL and Fortran under Linux

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

Current Time: Sat Oct 11 07:52:09 PDT 2025

Total time taken to generate the page: 1.17392 seconds