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

Home » Public Forums » archive » Re: eh..a question about idl...i really need some help
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: eh..a question about idl...i really need some help [message #77826 is a reply to message #77819] Wed, 05 October 2011 12:16 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kane Earnest writes:

> when i come to the astronomy user's library, it halted at one program
> at
>
> lambda = Varray (min(filter_w), max(filter_w), 1000.)
>
> the error message is that
>
> % Compiled module: $MAIN$.
> % Variable is undefined: VARRAY.
> % Execution halted at: $MAIN$
>
> i want to know what does this line mean,and how to correct it

I suppose it means IDL thinks Varray is a variable,
rather than a function. You can "fix" it by making
sure you only use parentheses for function calls
and not for array subscripting. You do this by adding
the compiler option strictarr to the top of the program
module where you are having problems (in other words, *all*
of them!).

compile_opt strictarr

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Non Nom on the Memory
Next Topic: printing with a format in exponent!

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

Current Time: Sun Oct 12 08:06:43 PDT 2025

Total time taken to generate the page: 0.31448 seconds