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

Home » Public Forums » archive » slight fix for where_array.pro
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
slight fix for where_array.pro [message #2337] Wed, 08 June 1994 08:07
stl is currently offline  stl
Messages: 70
Registered: February 1994
Member
Hello,

here is a slight speed (and programming style) fix to the program
where_array.pro that I posted a few days ago. (thanks dave.)

replace the line that look something like the following:
I = AA eq BB
Ia = where(i) mod Na
Ib = where(i) / na

with something like this:

I = where(AA eq BB)
Ia = i mod Na
Ib = i / na

Kinda obvious why, but it had to be pointed out to me too. (why use two
where's if one will do.)

-stephen Strebel
(gotta love being human and being able to make pretty basic mistakes
like this)

--
Stephen C Strebel / SKI TO DIE
strebel@sma.ch / and
Swiss Meteorological Institute, Zuerich / LIVE TO TELL ABOUT IT
01 256 93 85 / (and pray for snow)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SPACE-MOUSE with IDL ?
Next Topic: Question on PLOTS command

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

Current Time: Fri Oct 10 15:58:44 PDT 2025

Total time taken to generate the page: 0.00699 seconds