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

Home » Public Forums » archive » Re: 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 #76216 is a reply to message #76214] Tue, 24 May 2011 08:34 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I've discovered another happy reason to love IDL 8.1
> this morning. I couldn't figure out why a main-level
> program wouldn't compile. It didn't like this line:
>
> img = Image(image, ...)
>
> Apparently, you can't define an image variable with
> the name "image" and then use it as the argument
> to the Image function.

No problem doing this at the IDL command line:

IDL> W = WINDOW(DIMENSIONS=[800,800)
IDL> image = cgdemodata(7)
IDL> img = image(image,/current)

I don't know *what* is going on with my main-level
program. I know main-level programs don't really
work in IDL 8.1, so maybe it just has something to
do with that. Well, they work, just don't ever
make a programming error in one, or you are hosed
for that IDL session. I'm not sure they get
recompiled correctly. Maybe that is what happened.

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: IDL 8.1 workbench crash when using Source/Format
Next Topic: Customize the dashes and spacing in a dashed line plot

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

Current Time: Sat Oct 11 03:41:16 PDT 2025

Total time taken to generate the page: 0.24002 seconds