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

Home » Public Forums » archive » Re: WHERE_ARRAY, a problem?
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
Re: WHERE_ARRAY, a problem? [message #47906] Thu, 16 March 2006 12:58
maldayeh is currently offline  maldayeh
Messages: 13
Registered: January 2006
Junior Member
Very interesting to know.
Thanks.
-M
Re: WHERE_ARRAY, a problem? [message #47907 is a reply to message #47906] Thu, 16 March 2006 10:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
maldayeh@gmail.com writes:

> This example is in the function: where_array and it is not giving the
> indicated output:
>
> ; EXAMPLE:
> A=[2,1,3,5,3,8,2,5]
> B=[3,4,2,8,7,8]
> result = where_array(a,b)
> print,result
> 0 0 2 2 3 5
>
> indeed, I am getting this error:
> % Compiled module: WHERE_ARRAY.
> % WHERE_ARRAY: Inproper parametrs
> % WHERE_ARRAY: Parameters cannot be of type Structure

This is a famous gotcha:

http://www.dfanning.com/misc_tips/noidea.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: WHERE_ARRAY, a problem?
Next Topic: !P.multi overlap

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

Current Time: Sun Oct 12 04:38:12 PDT 2025

Total time taken to generate the page: 1.35769 seconds