|
Re: How to make an input parameters file?? [message #80138 is a reply to message #80135] |
Mon, 30 April 2012 01:15  |
Vincent Sarago
Messages: 34 Registered: September 2011
|
Member |
|
|
On Saturday, April 28, 2012 9:52:46 AM UTC+2, DooZer wrote:
> Hi!
>
> I'm writing a program for reading and processing LIDAR data output.
> The program is divided in some subroutine and each sub use some of the
> parameter i use to specify in the main routine. My pourpose is to
> remove all the paramenters from the main routine and store them in an
> ancillary .txt file, in order for the users of the program to modify
> only the txt file to run their own different experiment setup (the
> program itselk makes only calculus and should not be modified). I have
> thought to write another subroutine, called, for example,
> 'parameters.pro', where i'll store all the parameters and then i call
> it at the beginning of the main routine, but the number of out
> parameter in the calling sequence is big and the risk is to have a
> messy code.
> An suggestion???
> Thank you!
Hello,
As you said the risk is to have a messy code,
anyway you can have a look to the CALL_PROCEDURE or CALL_FUNCTION routines.
as it, you can just write a wrapping procedure that test the input txt file and 'calls' your program with the inputs keyword and parameters chosen by the user.
Again, the main problem will be to get an txt file as clear as possible.
Vincent
|
|
|