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

Home » Public Forums » archive » idl -vm and args / full idl and args
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
idl -vm and args / full idl and args [message #74784] Wed, 02 February 2011 05:04
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi

I am looking for an easy way to handle parameters for vm and full idl.

My current idea is:

pro example, lat, lon, n
name = "example"
args = command_line_args(count=nparams)
parameters = routine_info(strlowcase(name), /parameters)

if nparams eq n_elements(parameters.args) then $
for i=0, n_elements(parameters.args)-1 do $
void = routine_names(parameters.args[i], args[i],
STORE=ROUTINE_NAMES(/LEVEL))
help, lat, lon, n

end

and calling it compiled:

idl > idl -vm='./example.sav' -args "1" "2" "3"
IDL Version 8.0 (linux x86_64 m64). (c) 2010, ITT Visual Information
Solutions

LAT STRING = '1'
LON STRING = '2'
N STRING = '3'


I remember that there is a flag which can be used to find out if the
program is executed in runtime or not, but i can't remember. Which is it?

Also I want to avoid to enter the name into each of the programs as
name. How can that be solved?

Later on I will add that sequence as a journal (@iknow).

cheers
Reimar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 8 NG widget problem
Next Topic: Re: idl -vm and args / full idl and args

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

Current Time: Wed Oct 08 19:35:21 PDT 2025

Total time taken to generate the page: 0.00521 seconds