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

Home » Public Forums » archive » Re: off the box and already in trouble
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: off the box and already in trouble [message #10568] Sun, 14 December 1997 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Aldo P. Salzberg (salzberg.1@postbox.acs.ohio-state.edu) writes:

> I bought the Windows 95 idl student version and installed it on drive D:\
> ratherthan C:\. I notice that, following the student manual, when I type
> IDL> file = filepath('surface.dat', subdir=['examples',$'data'])
> everything is cool, but as soon as I try to type
> IDL> openr, lun, file, /get_lun
> It returns an error sometimes for file, which it says its undefined,
> sometimes for lun. It appears the interpreter doesn't recognize the
> path.

Leave out the "$" in the command above. That is a line
continuation character and IDL ignores anything to the right
of the character on the line, thinking that the line will
be continued on the next line. You see these marks often
in documentation because there is limited space to write
commands. When you are working, however, leave the line
continuation characters out and type the whole command
on a single line.

The correct command is this:

file = filepath('surface.dat', subdir=['examples','data'])

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3d axes & perspective
Next Topic: off the box and already in trouble

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

Current Time: Sat Oct 11 10:33:21 PDT 2025

Total time taken to generate the page: 0.48109 seconds