Command line

                Sample files are in tcomline.zip  The code is Watcom specific.  Arguments are separated by spaces.  In this code all arguments not preceded by – are part of the filename returned to the main code.  A code that allows for an input followed by an output with –‘s anywhere is described in Complex Nlfit.doc#comand_line

 

                The normal command line is

wfit -a1 -a2 -a3 filename

The first name is that of the program.  If it is followed by no argumanets, a screen comes up that tells what the arguments shoule be as in

 

>tcomline

 numargs=           1

wfit -b30 -e3000 -wm cdatae.txt

-b30 30 is the beginning number of coefficients to be fitted

-e3000 3000 is the ending number of coefficients to be fitted

-w white space

   m Use the smallest N=2**M that is > than the number of data points (default)

   e Make N at least twice the number of data points

   e5 Make N at least 2**5 times the number of data points

cdatae.txt or cdata test what.txt is file name to be fitted

 

The directions here are in WfitDir.txt.  This is coded into the subroutine comline.for as are defaults for the -b, -e, -w lines and for the filename.  It was non-trivial to allow speces in the file name.

 

>tcomline -b30 -e3000 test test.txt

 numargs=           5

 NB =          30

 NE =         3000

 NW =            0

 FNAME = test test.txt

 PRESS ENTER TO CONTINUE