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

Home » Public Forums » archive » Re: Weirdest Error Ever
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: Weirdest Error Ever [message #50755 is a reply to message #50753] Wed, 18 October 2006 11:10 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Lajos writes:
>
>> don't you have a 1D array named Reverse somewhere? Have you tried
>> compile_opt strictarr?
>
> Yes, I can fix it with compile_opt StrictArr, too.
> And I have now narrowed the problem down to IDL
> thinking the REVERSE(bar) call is a subscripted
> variable call and not a function call. I know
> how to *fix* this--I have a version that works,
> after all.
>
> What I am interested in knowing is how this line:
>
> bar = BYTSCL(bar, TOP=(ncolors-1) < (255-bottom)) + bottom
>
> confuses IDL into thinking my REVERSE call two lines
> later is a variable subscript and not a function call.
> What is THAT all about!?

I guess I should mention, too, although you probably
already realize this, that I have a REVERSE keyword
defined for the COLORBAR routine. When I enter the
program the *variable* reverse is set to 1. I didn't
mention this before because someone is invariably going
to point out that I also have an INVERTCOLORS keyword
defined that does the very same thing as my REVERSE
keyword and why the hell do you have TWO of them defined!?
I just didn't want to get into all that. :-(

But the fundamental question still remains. Why does
that line above confuse IDL about what REVERSE is?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: fast search
Next Topic: shapiro wilks test

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

Current Time: Wed Oct 08 18:15:32 PDT 2025

Total time taken to generate the page: 0.00158 seconds