Re: eh..a question about idl...i really need some help [message #77810] |
Sat, 08 October 2011 23:14  |
i's_can
Messages: 2 Registered: October 2011
|
Junior Member |
|
|
On Oct 6, 3:16 am, David Fanning <n...@dfanning.com> wrote:
> 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.")
thank you , David
i have tried to add the line you said,but it doesn't work
sorry for making a mistake in express my question,in fact,i just wanna
know
lambda = Varray (min(filter_w), max(filter_w), 1000.)
what the programer wanna get by this line in the quote
i checked the window for variable,both the VARRAY & LAMBDA are
undefined....
|
|
|