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

Home » Public Forums » archive » Happy Reasons to use IDL 8.1
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: Happy Reasons to use IDL 8.1 [message #76350 is a reply to message #76218] Tue, 24 May 2011 13:21 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Tue, 24 May 2011, David Fanning wrote:

> David Fanning writes:
>
>> What the *hell* is going on here!? :-(
>
> OK, here is the problem. Here is my pared down code:
>
> image = dist(200)
> w = window(dimensions=[400,400])
> img = image(image, /current)
> END
>
> This code when compiled always throws a syntax error
> on the image command.
>
> IDL> .compile -v 'C:\IDL\default\junk.pro'
>
> img = image(image, /current)
> ^
> % Syntax error.
> At: C:\IDL\default\junk.pro, Line 3
> % 1 Compilation error(s) in module $MAIN$.
>
> What is *that* about!? Remove the CURRENT keyword
> and the program compiles, although the image never
> shows up anywhere!
>

Probably IDL does not know about your image function and tries to
subscript the image variable. Does compile_opt idl2 help?

regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: graphics window
Next Topic: command in matlab analogous to scope_varname?

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

Current Time: Wed Oct 08 13:45:49 PDT 2025

Total time taken to generate the page: 0.00472 seconds