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

Home » Public Forums » archive » Re: SAV file generation with command line arguments
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: SAV file generation with command line arguments [message #37131 is a reply to message #37127] Wed, 19 November 2003 14:16 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Tue, 18 Nov 2003 22:15:39 -0700, David Fanning wrote:

> Sangwoo writes:
>
>> I have a simple question. Is it possible to create a .sav application
>> from a procedure including command line arguments? I know that making a
>> .sav file from a procedure like below is absolutely possible :
>>
>> pro example
>> ....................
>> end
>>
>> But, isn't it possible from a procedure like below? :
>>
>> pro example, a, b
>> ...........................
>> end
>>
>> I know that IDL VM doesn't allow access to command line. Does it mean
>> the answer to my question is negative?
>

> Rob Dimeo brought a nifty little program to my attention this week that
> was written by Jim Pendleton, an RSI programmer who writes awfully
> clever IDL code, that may help with the latter. The program is named
> SOURCEROOT. It allows you to store data files in the same directory as
> your pro files, and then distribute the files to any location. The
> SOURCEROOT program figures out which directory the pro files are being
> run from, so it can locate the data files without having to know ahead
> of time where they are. Neat. It works like this:
>
> file = filepath('data.dat',root = sourceroot())
>

I was amused to see sourceroot finds out the name of the current routine
by parsing the output of help,calls=c, which is apparently fair game,
unlike help,OUTPUT. I might give that little method a try.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 6.0 on Fedora Core 1 Linux
Next Topic: Re: Binary Serialization Format

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

Current Time: Sat Oct 11 21:11:39 PDT 2025

Total time taken to generate the page: 0.71841 seconds