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

Home » Public Forums » archive » Re: Using MIN on arrays : Exorcising loops?
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: Using MIN on arrays : Exorcising loops? [message #27158 is a reply to message #27033] Wed, 10 October 2001 18:38 Go to previous messageGo to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
Martin,

I'm back at work, and the original program that I thought showed a
fault in your
method has gone to God, courtesy of a purge on excess files.

Neither can I recreate the effect I saw. Your single inline method
works just
as well as Craig's.

I musta Goofed somewhere. Looks like I owe you an apology!

Maybe I've got a Brain Tumour or had Friday-night-itis?

Regards,

Andrew


Martin Downing wrote:
>
> Hows it going Andrew,
>
> I tested it first and it certainly worked for me. Not with you on the need
> for an initial test.
> Craig's version is fine, heck its only 2 loops! However I am curious as to
> what went wrong for you
> Either its a monday morning thing or IDL is hemisphere dependant: try > in
> place of
> < ;)!
> cheers Martin
>
> IDL> data_array = fix(randomu(1,3,3,3)*10)
>
> IDL> print, data_array
>
> 4 0 7
>
> 5 9 3
>
> 6 0 7
>
> 6 3 6
>
> 8 5 6
>
> 2 2 7
>
> 7 9 0
>
> 2 8 2
>
> 5 3 2
>
> IDL> print, data_array[*,*,0] < data_array[*,*,1] < data_array[*,*,2]
>
> 4 0 0
>
> 2 5 2
>
> 2 0 2
>
> IDL> print, !version
>
> { x86 Win32 Windows 5.4 Pommie Version Sep 25 2000 32 64}
>
> --
> ----------------------------------------
> Martin Downing,
> Clinical Research Physicist,
> Grampian Orthopaedic RSA Research Centre,
> Woodend Hospital, Aberdeen, AB15 6LS.
>
> m.downing@abdn.ac.uk
>
> "Jaco van Gorkom" <j.c.van.gorkom@fz-juelich.de> wrote in message
> news:3BC16C4B.B424CD8C@fz-juelich.de...
>> andrew cool wrote:
>>> Martin Downing wrote:
>>>>
>>>> For a simple case like this, why not just use:
>>>> Min_array = data_array[*,*,0] < data_array[*,*,1] <
> data_array[*,*,2]
>>>
>>>
>>> Now that I'm back at work, I regret to advise that your approach
>>> doesn't work. [...]
>>
>> Do you get some kind of error message then? Here it works all right (IDL
> 5.4).
>> Just interested.
>>
>> Cheers,
>> Jaco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: CURSOR question
Next Topic: Re: Possibly O/T: printing IDL code in colour -> CAN DO!!!

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

Current Time: Wed Oct 08 19:28:55 PDT 2025

Total time taken to generate the page: 0.00498 seconds