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

Home » Public Forums » archive » Re: VM command line parameters
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: VM command line parameters [message #49703] Fri, 11 August 2006 08:02 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Thanks very much, Ben - that works. You have to write an extra section
to decode the arguments from strings, but it's way better than using a
file. Works like this, where age_fit0 is the original routine:

idl -vm=age_fit.sav -args crater_count_file polynom_file poly_index
chron_file chron_index fit_range

pro age_fit
cla=command_line_args(count=count)
crater_count_file=cla[0]
polynom_file=cla[1]
poly_index=fix(cla[2])
chron_file=cla[3]
chron_index=fix(cla[4])
fit_range=float([cla[5],cla[6]])

age_fit0,crater_count_file,polynom_file,poly_index,chron_fil e,chron_index,fit_range
end
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: netcdf and hdf together
Next Topic: question about readf

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

Current Time: Wed Oct 08 15:55:48 PDT 2025

Total time taken to generate the page: 0.00468 seconds